Skip to content

Commit b670dc4

Browse files
committed
ptr events too is pointer event an exetension of mousevent?
1 parent f107f01 commit b670dc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Scripts/WindowManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ Dialog.prototype.initWithObject = function(object) {
409409
};
410410

411411
// if (object.body) this.body.appendChild(object.body);
412-
/** @type {(ev:Event)=>void} */
412+
/** @type {(ev:MouseEvent|PointerEvent)=>void} */
413413
var activationHandler = function (ev) {
414414
windowActivationEvent(ev, self)
415415
};
@@ -433,7 +433,7 @@ Dialog.prototype.initWithObject = function(object) {
433433
var pointerDown = function (ev) {
434434
cancelDomEvent(ev);
435435
if (ev.target && ev.target instanceof HTMLElement) dragAction.set(Number(ev.target.id));
436-
windowActivationEvent(ev, self);
436+
activationHandler(ev);
437437
}; // You can also put index + 1 in here instead for optimal efficiency and minimalism, but Internet Explorer is not a very stubborn browser but netscape is and does not instantiate the index variable but keeps one in memory resulting in resize direction being 9. Despite this it uses very little memory compared to Firefox and Chrome?
438438
if (supportsPointer) div.onpointerdown = pointerDown;
439439
else div.onmousedown = pointerDown;

0 commit comments

Comments
 (0)