Skip to content

Commit 3ca6918

Browse files
Merge pull request #49 from ekonstantinidis/disable-zoom
Disable zoom in BrowserWindow
2 parents 73636e6 + 26a1861 commit 3ca6918

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)