Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Replace lines after this:
- var e = document.createEvent("MouseEvent");
- With these 2 lines:
- if(c.target.id === 'svgroot') Array.from(document.getElementsByClassName('jspDrag')).forEach(scroll => { e.initMouseEvent(d, !0, !0, window, 1, c.screenX, c.screenY, (window.innerWidth - c.clientX), c.clientY, !1, !1, !1, !1, 0, null), b.length < 2 && scroll.dispatchEvent(e); });
- e.initMouseEvent(d, !0, !0, window, 1, c.screenX, c.screenY, (window.innerWidth - c.clientX), c.clientY, !1, !1, !1, !1, 0, null), b.length < 2 && c.target.dispatchEvent(e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement