projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some bugs fixes
[xogo.git]
/
variants
/
Hex
/
class.js
diff --git
a/variants/Hex/class.js
b/variants/Hex/class.js
index
ab634b8
..
91a0fe6
100644
(file)
--- a/
variants/Hex/class.js
+++ b/
variants/Hex/class.js
@@
-171,8
+171,11
@@
export default class HexRules extends ChessRules {
}
};
}
};
- if ('onmousedown' in window)
+ if ('onmousedown' in window)
{
document.addEventListener("mousedown", mousedown);
document.addEventListener("mousedown", mousedown);
+ document.addEventListener("wheel",
+ (e) => this.rescale(e.deltaY < 0 ? "up" : "down"));
+ }
if ('ontouchstart' in window)
document.addEventListener("touchstart", mousedown, {passive: false});
}
if ('ontouchstart' in window)
document.addEventListener("touchstart", mousedown, {passive: false});
}