提交 a499cab4 编写于 作者: Q qiang

fix: TouchtrackEvent

上级 801c65d5
......@@ -217,7 +217,7 @@ function useSliderLoader(
if (!props.disabled) {
return e.detail.state === 'move'
? (_onUserChangedValue({
x: e.detail.x0,
x: e.detail.x,
} as MouseEvent),
trigger('changing', e as any, {
value: sliderValue.value,
......
......@@ -30,8 +30,8 @@ type State = 'start' | 'move' | 'end' | 'cancel'
type TouchOrMouseEvent = TouchEvent | MouseEvent
type Detail = {
state: State
x0: number
y0: number
x: number
y: number
dx: number
dy: number
ddx: number
......@@ -81,8 +81,8 @@ export function useTouchtrack(
changedTouches: ($event as TouchEvent).changedTouches,
detail: {
state,
x0: x,
y0: y,
x: x,
y: y,
dx: x - x0,
dy: y - y0,
ddx: x - x1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册