Skip to content

Commit

Permalink
1.15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Dec 8, 2024
1 parent 99a9f45 commit 7d1d588
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
"version": "git add -A",
"postversion": "git push"
},
"version": "1.15.2"
"version": "1.15.3"
}
18 changes: 12 additions & 6 deletions v3/q5.js
Original file line number Diff line number Diff line change
Expand Up @@ -2587,9 +2587,11 @@ Q5.modules.input = ($, q) => {
};

$._onmouseup = (e) => {
$._updateMouse(e);
q.mouseIsPressed = false;
$.mouseReleased(e);
if ($.mouseIsPressed) {
$._updateMouse(e);
q.mouseIsPressed = false;
$.mouseReleased(e);
}
};

$._onclick = (e) => {
Expand Down Expand Up @@ -2690,16 +2692,20 @@ Q5.modules.input = ($, q) => {
if (!$.touchEnded(e)) e.preventDefault();
};

if (c) {
let l = c.addEventListener.bind(c);
l('mousedown', (e) => $._onmousedown(e));
l('wheel', (e) => $._onwheel(e));
l('click', (e) => $._onclick(e));
}

if (window) {
let l = window.addEventListener;
l('keydown', (e) => $._onkeydown(e), false);
l('keyup', (e) => $._onkeyup(e), false);

l('mousedown', (e) => $._onmousedown(e));
l('mousemove', (e) => $._onmousemove(e), false);
l('mouseup', (e) => $._onmouseup(e));
l('wheel', (e) => $._onwheel(e));
l('click', (e) => $._onclick(e));

l('touchstart', (e) => $._ontouchstart(e));
l('touchmove', (e) => $._ontouchmove(e));
Expand Down
2 changes: 1 addition & 1 deletion v3/q5.min.js

Large diffs are not rendered by default.

0 comments on commit 7d1d588

Please sign in to comment.