When using mzui, an error is reported with the error "Uncaught TypeError: Cannot read property 'trigger' of undefined", and the error is as follows:
Remove pointermove pointerdown pointerstart Cause: Click tap, touchstart and pointerstart are executed, the code in tap is executed twice, look carefully, first click and trigger twice, indicating that two events are bound, and then check the touch.js code of zepto, and find that it is bound to three events touchend MSPointerUp pointerup, touchend is a touch-related event, MSPointerUp It's IE10's touch event, pointerup pointer event, so it should be Chrome didn't support pointerup events before, but now the new version supports it, and then it reports an error.
Specifically: https://github.com/madrobby/zepto/issues/1249
My solution:
Search for the two characters pointerdown and pointerup in mzui js and delete them!!!
|