glacambre / firenvim

Embed Neovim in Chrome, Firefox & others.
GNU General Public License v3.0
4.76k stars 146 forks source link

<MiddleMouse> pastes even when remapped to <Nop> #1506

Closed glacambre closed 1 year ago

glacambre commented 1 year ago

Originally posted by @ysl2 in https://github.com/glacambre/firenvim/issues/1505#issuecomment-1443791769

Fix probably is just to handle mouse events on the keyboard handler the same way they're handled in the rest of the iframe.

ysl2 commented 1 year ago

No, not paste behavior. I think I might mixed up the middlemouse click and middlemouse scroll.

I want to map middlemouse scroll to nop. beacuse when I used middlemouse to scroll page (but the mouse is in firenvim), the firenvim scrolled but the page didn't. That's not I want. I just only want to scroll page, instead of the firenvim, even if the mouse is just in firenvim.

To be short, I want my middlemouse scroll always for page, not for firenvim.

glacambre commented 1 year ago

It turns out that :map <MiddleMouse> <nop> pasting is actually normal: :map only maps in normal, operator and verbose mode, not in insert mode.