提交 8a987c28 编写于 作者: H hdx

swiper-list: 适配 Windows 系统缩放后在微信开发者工具预览时下划线宽度不正确的问题

上级 c406d2fc
......@@ -208,11 +208,11 @@
const indicator_line_w = lerpNumber(current_size.w, move_to_size.w, percentage)
// 更新指示线
// #ifdef APP || MP
// #ifdef APP
const x = indicator_line_x + indicator_line_w / 2
this.indicatorNode?.style?.setProperty('transform', `translateX(${x}px) scaleX(${indicator_line_w})`)
// #endif
// #ifdef WEB
// #ifdef WEB || MP
// TODO chrome windows系统 transform scaleX渲染bug
const x = indicator_line_x
this.indicatorNode?.style?.setProperty('width', `${indicator_line_w}px`)
......
......@@ -168,11 +168,11 @@
const indicator_line_w = lerpNumber(current_size.w, move_to_size.w, percentage)
// 通过 transform 更新指示线,避免重排版
// #ifdef APP || MP
// #ifdef APP
const x = indicator_line_x + indicator_line_w / 2
this.indicatorNode?.style?.setProperty('transform', `translateX(${x}px) scaleX(${indicator_line_w})`)
// #endif
// #ifdef WEB
// #ifdef WEB || MP
// TODO chrome windows系统 transform scaleX渲染bug
const x = indicator_line_x
this.indicatorNode?.style?.setProperty('width', `${indicator_line_w}px`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册