[TC 11.50b1] dragging issue with both buttons down

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 11.50b1] dragging issue with both buttons down

Post by *white »

Preparation:
  • Execute cm_Confirmation and disable confirmation for drag&drop.
  • Execute cm_Config2 and set Mouse selection mode to Left mouse button (Windows standard)
  • Create the following folders and files:
    c:\test_folder\folder1\
    c:\test_folder\folder2\file2.txt
    c:\test_folder\file1.txt
Steps to show the issue:
  • Go to folder c:\test_folder
  • Execute cm_Exit 1
  • Right-click on the filename "file1.txt" to open the context menu
  • Move the mouse over the icon of file1.txt
  • Click the icon to close the context menu, but don't move the mouse
  • Now click the icon again but hold the mouse button down, don't move the mouse
  • Also press and hold the right mouse button down
  • With the 2 mouse buttons down drag file1.txt to folder1, release only the left mouse button (keep right button still down)
    file1.txt is not moved (if file1.txt is moved the issue will not appear)
  • While still holding the right mouse button down, drag to the right (far enough so you see folder2) and release the right mouse button
  • The context menu appears. Ignore it and click on folder2
  • An overwrite confirmation dialog appears asking you if you want to overwrite c:\test_folder\folder1\file1.txt with c:\test_folder\file1.txt
    If you now click Cancel, c:\test_folder\folder2 is renamed/moved to c:\test_folder\file1.txt
It was very hard to find a way to reproduce it consistently. I hope others can reproduce it too.
User avatar
petermad
Power Member
Power Member
Posts: 16098
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b1] dragging issue with both buttons down

Post by *petermad »

2white
Execute cm_Exit 1
Are you sure you don't mean: Execute cm_Exit 9 ?
drag to the right (far enough so you see folder2)
What do you mean by this? I can se folder2 below folder1 all the time
So I dragged down to to folder2
If you now click Cancel, c:\test_folder\folder2 is renamed/moved to c:\test_folder\file1.txt
Confirmed! - peculiar bug.

If I instead of clicking Cancel, click Overwrite I get an error saying: "ERROR: Cannot write C:\test_folder\folder1\file1txt ! remove the write protection"
If I then click Cancel OR Skip, the same thing happens. I can also just click Skip in the first place.

It is peculiar that the overwrite dialog pops up in the first place, since there is no file1.txt in folder1

I have made a video for others to see: https://tcmd.madsenworld.dk/whitesdragbug.mp4 if they want to reproduce the bug too
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.50b1] dragging issue with both buttons down

Post by *white »

petermad wrote: 2024-10-16, 04:38 UTC
Execute cm_Exit 1
Are you sure you don't mean: Execute cm_Exit 9 ?
cm_Exit 9 is indeed needed if people changed the default behavior of TC to save the left and right folder when exiting.
petermad wrote: 2024-10-16, 04:38 UTC
drag to the right (far enough so you see folder2)
What do you mean by this? I can se folder2 below folder1 all the time
So I dragged down to to folder2
I meant only to the right, but apparently the result is the same :)
If you only drag up to folder1, then release the left button, then move a little to the right and release the right button, the context menu would be over folder2 making it harder to click folder2 in the next step.
petermad wrote: 2024-10-16, 04:38 UTC I have made a video for others to see: https://tcmd.madsenworld.dk/whitesdragbug.mp4 if they want to reproduce the bug too
Very nice that you were able to reproduce it. It took me a long time to find a way to reproduce it reliably. Now I feel that my efforts were worth it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50817
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50b1] dragging issue with both buttons down

Post by *ghisler(Author) »

You managed to start two drag&drop operations at the same time (left mouse button drag and separate right mouse button drag). I will prevent it in beta 2.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50817
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50b1] dragging issue with both buttons down

Post by *ghisler(Author) »

This should have been fixed in 11.50 beta 2, please check!
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.50b1] dragging issue with both buttons down

Post by *white »

HISTORY.TXT wrote: 16.10.24 Fixed: Drag+Drop: In left mouse button selection mode, holding down both the left and right mouse button on the same location would start two drag&drop operations (32/64)
Tested OK using TC 11.50b2 32-bit and 64-bit.

Moderator message from: white » 2024-10-16, 13:58 UTC

Moved topic
» from TC11.x bug reports (English) to TC Fixed bugs
User avatar
petermad
Power Member
Power Member
Posts: 16098
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b1] dragging issue with both buttons down

Post by *petermad »

Confirmed fixed in TC 11.50b2 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50817
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50b1] dragging issue with both buttons down

Post by *ghisler(Author) »

Thanks for checking! Btw, you didn't need to open the context menu, just left button down, then right button down without moving the mouse first, then move the mouse.
Author of Total Commander
https://www.ghisler.com
Post Reply