Sha256: 3518c3e731abf509f252a62557fe4604057d5e3c7d567eeab93533c80e4a433e
Contents?: true
Size: 616 Bytes
Versions: 11
Compression:
Stored size: 616 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 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
11 entries across 11 versions & 1 rubygems