12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- function onTouchStartWxs(event, ins) {
- ins.callMethod("onTouchStartSwiperWxs", {
- changedTouches: event.changedTouches,
- currentTarget: event.currentTarget,
- touches: event.touches,
- type: event.type
- })
- }
- function onTouchMoveWxs(event, ins) {
- ins.callMethod("onTouchMoveSwiperWxs", {
- changedTouches: event.changedTouches,
- currentTarget: event.currentTarget,
- touches: event.touches,
- type: event.type
- })
- }
- function onTouchEndWxs(event, ins) {
- ins.callMethod("onTouchEndSwiperWxs", {
- changedTouches: event.changedTouches,
- currentTarget: event.currentTarget,
- touches: event.touches,
- type: event.type
- })
- }
- function wxsTransformObserver(newValue, oldValue, ownerInstance, instance) {
- instance.setStyle({
- transform: newValue
- })
- }
- function wxsItemTransformObserver(newValue, oldValue, ownerInstance, instance) {
- instance.setStyle({
- transform: newValue
- })
- }
- module.exports = {
- onTouchStartWxs: onTouchStartWxs,
- onTouchMoveWxs: onTouchMoveWxs,
- onTouchEndWxs: onTouchEndWxs,
- wxsTransformObserver: wxsTransformObserver,
- wxsItemTransformObserver: wxsItemTransformObserver
- }
|