sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
815 stars 40 forks source link

Clicking on Selected Text Does Not Deselect Text - Again #2073

Closed redtopia closed 1 year ago

redtopia commented 7 years ago

When text is selected, often times clicking in blank areas around the selected text (mostly to the right) does not deselect the text. This happens not only in the editor, but also in the find/replace text entry areas. When an entire file is selected in the editor, it is sometimes impossible to deselect the text by clicking anywhere in the document other than by clicking below the selected text.

I thought I had this fixed a year ago by making a change to a font size or something. I can't remember how it was fixed.

Steps to Reproduce:

  1. Select Text
  2. Click to the right of the selected text to deselect it, text does not deselect.

Environment: -Windows 7 x64

Monitor: -LG Ultrawide on NVIDIA Quadro K3000M -2560 x 1080

Sublime Text -Sublime Text 3 Build 3154

TD540 commented 5 years ago

Same issue.

macOS 10.13.6 (17G3025) Sublime Text Build 3200 Apple Magic Mouse 2

Instead of clicking 10 times until text eventually deselects, I find that ALT + clicking seems to work on 1st click!

BlazZupan commented 5 years ago

I am also experiencing this issue on macOS 10.14.3 with Sublime Text 3.2.1. It would be great if it could be fixed.

bastaware commented 4 years ago

Same issue.

MacOS 10.15.4 Sublime Text Build 3.2.2 3211 Apple Magic Mouse

As described here: https://github.com/sublimehq/sublime_text/issues/1028 The problem only happens when using mouse, not when using trackpad.

Immensely annoying.

ireality18 commented 4 years ago

same issue here however I would like to add that I use the exact same portable version for Sublime on two computers. One works fine, the other does not. the only difference would be screen size and the fact that the second one has a touchscreen.

perhaps the touchscreen affects the behavior somehow. Setting drag_text to false fixed the problem but I don't think that that's the solution for the issue.

till-kammertoens commented 4 years ago

Same issue here.

MacOS 10.15.5 Sublime Text 3.2.2 Build 3211

This happens BOTH when I'm using the built in Trackpad of my MacBook Pro 16" and when using a wired USB mouse.

setting '"drag_text": false' fixed it, although I'd like to be able to to drag and drop text. But the issue is so annoying that I sacrificed drag&drop for now.

mdotk commented 4 years ago

Same issue. Magic Mouse 2

tobyspark commented 4 years ago

MacBook Pro trackpad: no issue. Magic Mouse 2: issue.

mlmcconnell1 commented 4 years ago

MacBook Pro trackpad: no issue. Logitech USB mouse: issue. Immensely annoying sums it up.

andirayo commented 4 years ago

I have the same issue with MacBook Pro trackpad: \ Clicking into selected text will not deselect.

This problem does not always appear, but most of the time. \ It can be solved by repeating the click.

tal-zvon commented 3 years ago

Running Sublime v 3.2.2 Build 3211 on MacOS Catalina V10.15.7 (Late 2012 iMac). Using a Microsoft mouse. Experiencing the same issue. Not every time, but quite often - I have something selected, click to de-select, and it won't deselect. Have to click a bunch of times all over the place. Super annoying.

jskinner commented 3 years ago

This can be triggered by inadvertently moving the mouse between pressing the button and releasing it. You can confirm this by holding the mouse in the air (far enough away such that it can't move the cursor) and clicking.

Disabling text dragging, by adding "drag_text": false to the preferences will make the issue go away.

tal-zvon commented 3 years ago

@jskinner Can confirm this does indeed appear to be the problem. Holding mouse in the air does "fix" it.

"drag_text": false does not appear to fix the problem.

Update: Sorry - it DOES fix the problem. I spelled drag_text wrong in my settings the first time I tried it.

Perhaps the sensitivity of the drag-drop feature needs to be adjusted? Little mouse movements shouldn't register as an attempt to drag.

rcragun commented 3 years ago

Same issue.

Sublime build 4113 Windows 10 Home 21H1 (also present on 20H1) Dell XPS 13 9370 (not sure what the touchpad is)

Disabling text dragging is not an acceptable solution. Also, this is not at all an issue in other applications, so suggesting it is user error is unreasonable. There is something specific to Sublime here. I would guess that Sublime is somehow more sensitive to cursor movements than other programs are.

Interesting detail: double tapping on a selected area succeeds at selecting a word even if the first tap fails to un-select.

molomby commented 3 years ago

I've been having this problem for at least 4 years but it's been an issue since 2015 (#1028).

The behaviour is extremely annoying, especially given that Sublime doesn't bind the esc key to deselecting text. Further, there's not even a key bindings command for deselecting text so you need to fix that first. My solve is to...

This gives me the standard, non-infuriating behaviour most editors have out of the box (sans text dragging).

BenjaminSchaaf commented 1 year ago

This was fixed in build 4119