Sha256: 52e6495fd1c66059a187fd89a0a0a3a3d995ffcfebfaf32de0841549a88dac6a
Contents?: true
Size: 628 Bytes
Versions: 29
Compression:
Stored size: 628 Bytes
Contents
(function($) { $.widget('pageflow.hideTextOnSwipe', { _create: function() { this.element.swipeGesture({ orientation: 'x' }); this.element.on('swipegestureleft', function() { pageflow.hideText.activate(); }); this.element.on('touchstart MSPointerDown pointerdown mousedown', function() { if (pageflow.hideText.isActive()) { pageflow.hideText.deactivate(); } }); this.element.on('scrollermove', function() { if (pageflow.hideText.isActive()) { pageflow.hideText.deactivate(); } }); } }); }(jQuery));
Version data entries
29 entries across 29 versions & 1 rubygems