Skip to content

Commit 26a1861

Browse files
author
Emmanouil Konstantinidis
committed
Disable zoom in BrowserWindow
1 parent 5364d3f commit 26a1861

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,13 @@
1313
</body>
1414

1515
<script type="text/javascript" src="build/js/app.js"></script>
16+
17+
<script type="text/javascript">
18+
// Disable zoom
19+
document.addEventListener('mousewheel', function(e) {
20+
if(e.deltaY % 1 !== 0) {
21+
e.preventDefault();
22+
}
23+
});
24+
</script>
1625
</html>

0 commit comments

Comments
 (0)