t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

Mouse click after visual selection causes scroll #1044

Open franksl opened 6 years ago

franksl commented 6 years ago

Using vim-mode-plus 1.30.1 on Atom 1.24.0

Steps to reproduce:

What happens is that the editor scrolls up automatically losing the position where the last click has been made.

t9md commented 6 years ago

Can you reproduce that always? I cannot reproduce it. Here is the my environment info clipped by Vim Mode Plus: Clip Debug Info command.

debug info ```json { "atom": "1.25.0", "platform": "darwin", "release": "17.4.0", "vmpVersion": "1.31.1", "vmpConfig": { "autoDisableInputMethodWhenLeavingInsertMode": true, "charactersToAddSpaceOnSurround": [ ")", "}", "]", ">" ], "debugOutput": "console", "debugOutputFilePath": "~/github/atom-vim-mode-plus/debug.log", "defaultScrollRowsOnMiniScroll": 4, "devReloadPackages": [ "vim-mode-plus-move-selected-text", "vim-mode-plus-jasmine-increase-focus", "vim-mode-plus-replace-with-execution", "vim-mode-plus-ex-mode", "google-translate", "narrow", "narrow-git-ls", "quick-highlight", "demo-mode" ], "findAcrossLines": true, "findCharsMax": 100, "findConfirmByTimeout": 300, "hideStatusBarOnMaximizePane": false, "hideTabBarOnMaximizePane": false, "highlightSearch": false, "highlightSearchExcludeScopes": [ "narrow" ], "keymapBackslashToInnerCommentOrParagraphWhenToggleLineCommentsIsPending": true, "keymapCCToChangeInnerSmartWord": true, "keymapIAndAToInsertAtTargetWhenHasOccurrence": true, "keymapSToSelect": true, "keymapSemicolonAndCommaToFindPreConfirmedOnFindInput": true, "keymapSemicolonToInnerAnyPairInOperatorPendingMode": true, "keymapYToYankToLastCharacterOfLine": true, "replaceByDiffOnSurround": true, "reuseFindForRepeatFind": true, "setCursorToStartOfChangeOnUndoRedo": false, "smoothScrollOnFullScrollMotion": true, "smoothScrollOnHalfScrollMotion": true, "smoothScrollOnMiniScroll": true, "smoothScrollOnRedrawCursorLine": true, "strictAssertion": true, "useClipboardAsDefaultRegister": false, "useLanguageIndependentNonWordCharacters": true, "useSmartcaseForFind": true, "useSmartcaseForSearch": true, "useSmartcaseForSearchCurrentWord": true, "blackholeRegisteredOperators": [], "startInInsertModeScopes": [], "flashOnOperateBlacklist": [] } } ```
franksl commented 6 years ago

Hi, It does not happen always but very frequently to me, please try with a long php file by making a selection near the top of the file, then moving near the bottom and clicking on a string. I understand it may be difficult to reproduce, please let me know if you need any info. Here's my info:

debug info ```json { "atom": "1.25.0", "platform": "linux", "release": "4.4.0-112-generic", "vmpVersion": "1.31.1", "vmpConfig": { "ignoreCaseForSearch": true, "useClipboardAsDefaultRegister": false, "blackholeRegisteredOperators": [], "startInInsertModeScopes": [], "charactersToAddSpaceOnSurround": [], "highlightSearchExcludeScopes": [], "flashOnOperateBlacklist": [] } } ```
AlbinDaleby commented 6 years ago

This happens to me aswell!

I've been wanting to create an issue but I cannot reproduce it consistently.

I've noticed that it happens more often if:

What I've been doing to deal with this is pressing zz after this happens. The new mouse location is saved so the view will center onto my new mouse location.

I recorded a gif of it in action. (observe the minimap to the left and you will see it move when I press the mouse after I scrolled down.)

(sorry for the low quality. github only allows 10mb uploads and gifs take alot of space) scroll

tobiasvl commented 5 years ago

This happens to me too.