Skip to content

Commit c062237

Browse files
Update app/editor/boot.js
Co-authored-by: Katsuya HIDAKA <hidakatsuya@users.noreply.github.com>
1 parent 8212e20 commit c062237

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/editor/boot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ thin.init_ = function() {
793793
});
794794

795795
// Mouse wheel zoom
796-
document.body.addEventListener('mousewheel', function(e){
796+
main.getMain().getElement().addEventListener('mousewheel', function(e) {
797797
var workspace = thin.core.getActiveWorkspace();
798798
if(e.ctrlKey != true || !workspace) return;
799799
if(e.wheelDeltaY < 0) {

0 commit comments

Comments
 (0)