Skip to content

Commit

Permalink
dependencies upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
worka committed Feb 4, 2024
1 parent 120587d commit c09afb1
Show file tree
Hide file tree
Showing 4 changed files with 242 additions and 246 deletions.
61 changes: 28 additions & 33 deletions dist/wheel-zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,31 @@
})(this, function () {
'use strict';

function _callSuper(t, o, e) {
return (
(o = _getPrototypeOf(o)),
_possibleConstructorReturn(
t,
_isNativeReflectConstruct()
? Reflect.construct(
o,
e || [],
_getPrototypeOf(t).constructor
)
: o.apply(t, e)
)
);
}
function _isNativeReflectConstruct() {
try {
var t = !Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {})
);
} catch (t) {}
return (_isNativeReflectConstruct = function () {
return !!t;
})();
}
function _iterableToArrayLimit(r, l) {
var t =
null == r
Expand Down Expand Up @@ -176,19 +201,6 @@
};
return _setPrototypeOf(o, p);
}
function _isNativeReflectConstruct() {
if (typeof Reflect === 'undefined' || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === 'function') return true;
try {
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {})
);
return true;
} catch (e) {
return false;
}
}
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError(
Expand All @@ -207,20 +219,6 @@
}
return _assertThisInitialized(self);
}
function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = _getPrototypeOf(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
function _superPropBase(object, property) {
while (!Object.prototype.hasOwnProperty.call(object, property)) {
object = _getPrototypeOf(object);
Expand Down Expand Up @@ -747,15 +745,14 @@
var EVENT_DROP = 'drop';
var DragScrollableObserver = /*#__PURE__*/ (function (_AbstractObserver) {
_inherits(DragScrollableObserver, _AbstractObserver);
var _super = _createSuper(DragScrollableObserver);
/**
* @param {HTMLElement} target
* @constructor
*/
function DragScrollableObserver(target) {
var _this;
_classCallCheck(this, DragScrollableObserver);
_this = _super.call(this);
_this = _callSuper(this, DragScrollableObserver);
_this.target = target;
_this.moveTimer = null;
_this.coordinates = null;
Expand Down Expand Up @@ -910,15 +907,14 @@
var EVENT_WHEEL = 'wheel';
var InteractionObserver = /*#__PURE__*/ (function (_AbstractObserver) {
_inherits(InteractionObserver, _AbstractObserver);
var _super = _createSuper(InteractionObserver);
/**
* @param {HTMLElement} target
* @constructor
*/
function InteractionObserver(target) {
var _this;
_classCallCheck(this, InteractionObserver);
_this = _super.call(this);
_this = _callSuper(this, InteractionObserver);
_this.target = target;
_this.coordsOnDown = null;
_this.pressingTimeout = null;
Expand Down Expand Up @@ -1084,15 +1080,14 @@
var SHIFT_DECIDE_THAT_MOVE_STARTED = 5;
var PinchToZoomObserver = /*#__PURE__*/ (function (_AbstractObserver) {
_inherits(PinchToZoomObserver, _AbstractObserver);
var _super = _createSuper(PinchToZoomObserver);
/**
* @param {HTMLElement} target
* @constructor
*/
function PinchToZoomObserver(target) {
var _this;
_classCallCheck(this, PinchToZoomObserver);
_this = _super.call(this);
_this = _callSuper(this, PinchToZoomObserver);
_this.target = target;
_this.fingersHypot = null;
_this.zoomPinchWasDetected = false;
Expand Down
Loading

0 comments on commit c09afb1

Please sign in to comment.