Releases: jerrybendy/vue-touch-events
v3.2.1
v3.1.0
- Resolve touch through issue with a global timestamp
Add a globalLastTouchTime
variable to track all touch behaviors and record latest touch time. If a click
event follow a touch
event, and the time difference less than 350ms, this click
event will be ignored. This would resolve touch through issue, but you must make sure your click events are binding with v-touch
.
v3.0.1
v3.0.0
v2.3.0
v2.2.0
- Add
v-touch-options
directive
Now you can use v-touch-options="{}"
to set different configurations for different components. All global configurations are supported.
v2.1.0
Add `disableClick` option back
I realized that using event timestamp to solve click pass-through issue is not a good idea, because when click pass-through issue happens, the touch event and the mouse event often be triggered on different elements.
v2.0.0
This is a brake change for old version. We removed disableClick
parameter and using event timestamp to prevent click event when touch is available.
- Combine touch and mouse events in one method
Typescript
supports- Fix a bug of
end
event. Now theend
event can be triggered when touch or mouse events end correctly
v1.1.2
- Add
move
andmoving
events