PageSourceSearch

https://rozanov-lib.ru/wp-content/plugins/lightbox/js/frontend/mousewheel.min.js?ver=1.0

js rozanov-lib.ru collected 2026-10-03 18:53:17 UTC 3,931 bytes, 83 lines download raw bytes

vendor: 3,931 bytes, lines 1-83
1/*!
2 * jQuery Mousewheel 3.1.13
3 *
4 * Copyright 2015 jQuery Foundation and other contributors
5 * Released under the MIT license.
6 * http://jquery.org/license
7 */
8! function(a) {
9    "function" == typeof define && define.amd ? define(["jquery"], a) : "object" == typeof exports ? module.exports = a : a(jQuery)
10}(function(a) {
11    function b(b) {
12        var g = b || window.event,
13            h = i.call(arguments, 1),
14            j = 0,
15            l = 0,
16            m = 0,
17            n = 0,
18            o = 0,
19            p = 0;
20        if (b = a.event.fix(g), b.type = "mousewheel", "detail" in g && (m = -1 * g.detail), "wheelDelta" in g && (m = g.wheelDelta), "wheelDeltaY" in g && (m = g.wheelDeltaY), "wheelDeltaX" in g && (l = -1 * g.wheelDeltaX), "axis" in g && g.axis === g.HORIZONTAL_AXIS && (l = -1 * m, m = 0), j = 0 === m ? l : m, "deltaY" in g && (m = -1 * g.deltaY, j = m), "deltaX" in g && (l = g.deltaX, 0 === m && (j = -1 * l)), 0 !== m || 0 !== l) {
21            if (1 === g.deltaMode) {
22                var q = a.data(this, "mousewheel-line-height");
23                j *= q, m *= q, l *= q
24            } else if (2 === g.deltaMode) {
25                var r = a.data(this, "mousewheel-page-height");
26                j *= r, m *= r, l *= r
27            }
28            if (n = Math.max(Math.abs(m), Math.abs(l)), (!f || f > n) && (f = n, d(g, n) && (f /= 40)), d(g, n) && (j /= 40, l /= 40, m /= 40), j = Math[j >= 1 ? "floor" : "ceil"](j / f), l = Math[l >= 1 ? "floor" : "ceil"](l / f), m = Math[m >= 1 ? "floor" : "ceil"](m / f), k.settings.normalizeOffset && this.getBoundingClientRect) {
29                var s = this.getBoundingClientRect();
30                o = b.clientX - s.left, p = b.clientY - s.top
31            }
32            return b.deltaX = l, b.deltaY = m, b.deltaFactor = f, b.offsetX = o, b.offsetY = p, b.deltaMode = 0, h.unshift(b, j, l, m), e && clearTimeout(e), e = setTimeout(c, 200), (a.event.dispatch || a.event.handle).apply(this, h)
33        }
34    }
35
36    function c() {
37        f = null
38    }
39
40    function d(a, b) {
41        return k.settings.adjustOldDeltas && "mousewheel" === a.type && b % 120 === 0
42    }
43    var e, f, g = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"],
44        h = "onwheel" in document || document.documentMode >= 9 ? ["wheel"] : ["mousewheel", "DomMouseScroll", "MozMousePixelScroll"],
45        i = Array.prototype.slice;
46    if (a.event.fixHooks)
47        for (var j = g.length; j;) a.event.fixHooks[g[--j]] = a.event.mouseHooks;
48    var k = a.event.special.mousewheel = {
49        version: "3.1.12",
50        setup: function() {
51            if (this.addEventListener)
52                for (var c = h.length; c;) this.addEventListener(h[--c], b, !1);
53            else this.onmousewheel = b;
54            a.data(this, "mousewheel-line-height", k.getLineHeight(this)), a.data(this, "mousewheel-page-height", k.getPageHeight(this))
55        },
56        teardown: function() {
57            if (this.removeEventListener)
58                for (var c = h.length; c;) this.removeEventListener(h[--c], b, !1);
59            else this.onmousewheel = null;
60            a.removeData(this, "mousewheel-line-height"), a.removeData(this, "mousewheel-page-height")
61        },
62        getLineHeight: function(b) {
63            var c = a(b),
64                d = c["offsetParent" in a.fn ? "offsetParent" : "parent"]();
65            return d.length || (d = a("body")), parseInt(d.css("fontSize"), 10) || parseInt(c.css("fontSize"), 10) || 16
66        },
67        getPageHeight: function(b) {
68            return a(b).height()
69        },
70        settings: {
71            adjustOldDeltas: !0,
72            normalizeOffset: !0
73        }
74    };
75    a.fn.extend({
76        mousewheel: function(a) {
77            return a ? this.bind("mousewheel", a) : this.trigger("mousewheel")
78        },
79        unmousewheel: function(a) {
80            return this.unbind("mousewheel", a)
81        }
82    })
83});

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.