Skip to content

Mouse click behaviour when changing focus is weird #327

@pauxus

Description

@pauxus

I just noticed a rather weird behaviour in Sublime 3, on Windows 7 64bit.

When the I have focus in a different window (for example to copy something), and I click back into the Sublime window, the window gets the focus, after a fraction of a second, the cursor is placed in the text, but not on the place where the window was clicked but rather where the mouse cursor is NOW, a split second later.

So you click in the window, you continue moving the mouse after the click, and the cursor appears at a completely different place. This hampers fast working with two windows a lot.

This is even worse when trying to select something using the mouse, because in that case, you HAVE to move the cursor:

Steps to reproduce:

  • Enter a String (say "This is my test string")
  • select a different (non Sublime) window
    -Now try to select the whole sentence with a the mouse (without previously focusing the editor) in one fast motion.

Expected behaviour: Whole string is selected
Actual Result: only part of the string is selected (The part of the timeframe between clicking and the setting of the focus is missing)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions