I use Framework7's sort list , and it works well, simply because it does not raise an event when the list changes.
So, I'm trying a few inline events:
$('.sortable-handler').on('touchstart', function (e) { e.preventDefault(); alert('touchstart'); }); $('.sortable-handler').on('touchmove', function (e) { e.preventDefault(); console.log('touchmove'); }); $('.sortable-handler').on('touchcancel', function (e) { e.preventDefault(); console.log('touchcancel'); }); $('.sortable-handler').mouseleave(function (e) { e.preventDefault(); console.log('mouseleave'); });
.. but all I get is:
It is not possible to prevent detection inside a passive event listener because the target is considered passive. See https://www.chromestatus.com/features/5093566007214080
What event should I look for to get an updated list in each view?
javascript jquery framework7 html-framework-7
3zzy Feb 07 '17 at 23:08 2017-02-07 23:08
source share