sublimehq / sublime_text

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

Clicking on Selected Text Does Not Deselect Text #1028

Closed bcrotty closed 8 years ago

bcrotty commented 8 years ago

When you select text and then click on it, the move/drag cursor flashes briefly and then the cursor goes back to normal, but the text remains selected. I have tried many times and different ways to ensure the mouse is not moving when I click. Normal behavior for all other editors (Word, Notepad, browsers, etc.) is to deselect text when you click on a selection, so if intended, this is counterintuitive. This is especially an issue when you have all text selected as clicking anywhere in the editor does this, and the only way to deselect is to use the keyboard or double-click somewhere.

I am using Sublime Text 3 Build 3083 on Windows 10.

FichteFoll commented 8 years ago

Can not confirm on 3095 Win 7. Clicking into selected text without moving the mouse while the mouse button is held down removes the selection and places a caret where I clicked.

bcrotty commented 8 years ago

It appears to have fixed itself. I'll bring it up again if it happens again and I can narrow it down.

mpavey0 commented 7 years ago

I'm experiencing this on build 3126 on Mac.

valentinocossar commented 7 years ago

I have the same problem with macOS 10.12.3, and Sublime Text 3 build 3126. This problem happens only with external mouse (I'm using Apple Magic Mouse 2) and not with the MacBook's trackpad.

edit: setting "drag_text": false solves the problem for me.

thegreatsunra commented 7 years ago

I was experiencing the same issue and @valentinocossar's fix worked for me.

telmodias commented 7 years ago

I'm experiencing the same...

macOS 10.12.3 Sublime Text 3 build 3126 Apple Magic Mouse 1

jeslenbucci commented 7 years ago

Let's keep this train rollin'!

MacOS Sierra Version 10.12.5 Sublime Text 3 Build 3126 Microsoft Corded Mouse

iLoyola-zz commented 7 years ago

This is very irritating

macOS 10.12.3 Sublime Text 3 build 3126 Apple Magic Mouse 2

c4sh commented 7 years ago

@valentinocossar's fix worked for me too.

macOS 10.12.5 Sublime Text 3 build 3126 Apple Magic Mouse 2

theblang commented 7 years ago

macOS 10.12.6 Sublime Text 3 build 3126 Apple Magic Mouse 2

theblang commented 7 years ago

@bcrotty This should probably be reopened?

bcrotty commented 7 years ago

@mattblang I'd create a new issue for it, and you can reference this one.

keith-hall commented 7 years ago

if I understand the problem correctly, it's probably only worth creating a new issue if you mention that you want to be able to customize the mouse movement threshold of what is considered a drag, otherwise it would be a duplicate of #1258

ckizer commented 7 years ago

The default behavior should not be like this. It doesn't behave like Mac OS, or Windows expects it too. Very frustrating to use a magic mouse this way.

digiltd commented 6 years ago

This was driving me mad, but I put up with it for months because I knew it was one of those bugs that would take forever to track down. I am pretty sure it only happened when I upgraded to Sierra. I assumed it was Hammerspoon, Bettertouchtools, Keyboard Maestro or some macOS accessibility issue.

Whilst I thought it could be Sublime, I tested it is VSCode as well and that was behaving the same way.

Turns out there is a similar setting there also "editor.dragAndDrop": false

Cheers @valentinocossar, my days are now a little less frustrating :)

Dr-Steve commented 5 years ago

"drag_text": false This does not really fix it. This disables drag and drop entirely. Ideally you should be able to drag and drop text by holding the mouse button down, but still deselect by clicking once in the selection (like every other editor). This setting makes it impossible to drag text at all.

tonyarnold commented 5 years ago

I'm seeing this with build 3202. It is super annoying, and quite definitely not fixed.

felixpenrose commented 5 years ago

I've just had to set "drag_text": false too, as this was driving me crazy. Sometimes I'd have to spam click the mouse, and maybe the 10th time I click it finally de-selected the text.

This is not a setting I want to disable, but it has such annoying side effects it's the lesser of two evils.

It might be worth mentioning I experience similar behaviour sometimes when clicking tabs. Occasionally I click a tab, then move my mouse down, but some process thinks that I've held down the mouse button and has then dragged the tab into a new stand alone window. No idea if this is related or not.

Build 3200 Win 10 x64 Steel Series Rival 100

madmozg commented 5 years ago

Hello guys, After latest update this bug is appeared again. Maybe we should reopen it ? Thanks. Its very annoying.

wbond commented 5 years ago

If you experiencing a bug with a recent build, commenting on an issue from 4 years and over 100 builds ago probably isn't what you want to do. Instead, please open a new issue and provide as many details as possible.

I have not been able to reproduce such an issue, so I imagine the input device being used is contributing in some way.

madmozg commented 5 years ago

@wbond Yeah, my bad man. Will create a new issue. Thanks.

bastaware commented 4 years ago

Why not leave a link to the new issue?