PageSourceSearch

https://www.sylvane.com/cdn/shop/t/101/assets/dragscroll.js?v=30361356370642154271788195339

js sylvane.com collected 2026-10-03 19:26:12 UTC 2,405 bytes, 8 lines download raw bytes

1/**
2 * @fileoverview dragscroll - scroll area by dragging
3 * @version 0.0.8
4 * 
5 * @license MIT, see http://github.com/asvd/dragscroll
6 * @copyright 2015 asvd <[email protected]> 
7 */(function(root,factory){typeof define=="function"&&define.amd?define(["exports"],factory):factory(typeof exports!="undefined"?exports:root.dragscroll={})})(this,function(exports2){var _window=window,_document=document,mousemove="mousemove",mouseup="mouseup",mousedown="mousedown",mouseenter="mouseenter",click="click",EventListener="EventListener",addEventListener="add"+EventListener,removeEventListener="remove"+EventListener,newScrollX,newScrollY,moveThreshold=4,dragged=[],reset=function(i,el){for(i=0;i<dragged.length;)el=dragged[i++],el=el.container||el,el[removeEventListener](mousedown,el.md,0),el[removeEventListener](click,el.mc,0),_window[removeEventListener](mouseup,el.mu,0),_window[removeEventListener](mousemove,el.mm,0),_document[removeEventListener](mouseenter,el.me,0);for(dragged=[].slice.call(_document.getElementsByClassName("dragscroll")),i=0;i<dragged.length;)(function(el2,lastClientX,lastClientY,startX,startY,moved,pushed,scroller,cont){(cont=el2.container||el2)[addEventListener](mousedown,cont.md=function(e){(!el2.hasAttribute("nochilddrag")||_document.elementFromPoint(e.pageX,e.pageY)==cont)&&(pushed=1,moved=0,startX=lastClientX=e.clientX,startY=lastClientY=e.clientY,e.preventDefault(),e.stopPropagation())},0),(cont=el2.container||el2)[addEventListener](click,cont.mc=function(e){moved&&(e.preventDefault(),e.stopPropagation(),moved=0,pushed=0)},1),_window[addEventListener](mouseup,cont.mu=function(){pushed=0},0),_document[addEventListener](mouseenter,cont.me=function(e){e.buttonsPressed||(pushed=0)},0),_window[addEventListener](mousemove,cont.mm=function(e){pushed&&(!moved&&(Math.abs(e.clientX-startX)>moveThreshold||Math.abs(e.clientY-startY)>moveThreshold)&&(moved=!0),moved&&((scroller=el2.scroller||el2).scrollLeft-=newScrollX=-lastClientX+(lastClientX=e.clientX),scroller.scrollTop-=newScrollY=-lastClientY+(lastClientY=e.clientY),el2==_document.body&&((scroller=_document.documentElement).scrollLeft-=newScrollX,scroller.scrollTop-=newScrollY)))},0)})(dragged[i++])};_document.readyState=="complete"?reset():_window[addEventListener]("load",reset,0),exports2.reset=reset});
8//# sourceMappingURL=/cdn/shop/t/101/assets/dragscroll.js.map?v=30361356370642154271788195339

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.