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