Skip to content

Conversation

@eviltik
Copy link

@eviltik eviltik commented Jan 31, 2023

editor.zoom_use_ctrl_key = false will remove the need of pressing Ctrl Key for zooming.

@jerosoler
Copy link
Owner

Hello,

Thanks for the PR.

I study the case. Since currently no key can be set.

Also this can be done in a simple way, adding before the start function.

    editor.zoom_enter = function(event, delta) {
        event.preventDefault()
        if(event.deltaY > 0) {
            // Zoom Out
            this.zoom_out();
        } else {
            // Zoom In
            this.zoom_in();
        }
    }

@jerosoler jerosoler self-assigned this Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants