Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add zoom_use_ctrl_key editor option #648

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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