0.38.9 Win: Drag n Drop then pressing "Esc" to cancel drop

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

0.38.9 Win: Drag n Drop then pressing "Esc" to cancel drop

Post by budz45 »

Hi,

When I drag a file item from Windows Explorer to any XnView MP tab but then I decide that I don't want to drop it by pressing "Esc" the tab that I am dragging the file to just closes.

Right, I know that "Esc" key is used to close tabs. However for Drag n drop actions, the "Esc" key is needed first and foremost to cancel the Drag n Drop... So could this be rectified please to make it so that if I press "Esc" to cancel a Drag n Drop it would be cancelled and not tab closed in this instance.

btw, "Esc" key to cancel any Drag n drop is standard expected behavior on Windows. Thank you.
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
User avatar
xnview
Author of XnView
Posts: 43710
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.3.8.9 Win: Drag n Drop then pressing "Esc" to cancel d

Post by xnview »

It works for me... Esc canceled the Drop action
Pierre.
User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: 0.3.8.9 Win: Drag n Drop then pressing "Esc" to cancel d

Post by budz45 »

xnview wrote:It works for me... Esc canceled the Drop action
Yes but it's closing the tab at the same time.... The first Priority for when "Esc" is pressed is to cancel the drop action first (this is all when I am drag n drop files to viewer interface)

try it again..
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
User avatar
xnview
Author of XnView
Posts: 43710
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.3.8.9 Win: Drag n Drop then pressing "Esc" to cancel d

Post by xnview »

Tab is not closed on my Win7
Pierre.
User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: 0.3.8.9 Win: Drag n Drop then pressing "Esc" to cancel d

Post by budz45 »

xnview wrote:Tab is not closed on my Win7
I know what you mean because of a after a few tests the tab did not close but in the same few tests most of the time the tab did close.

Also I might have discovered another bug in my test trials which enables the drag 'n' drop to get disabled..

I will keep testing so that I can make a proper reproduction for you.
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: 0.3.8.9 Win: Drag n Drop then pressing "Esc" to cancel d

Post by budz45 »

Hi Pierre, please carefully test my below reproduction

1.) download & extract v0.38.10
2.) Create an 'xnview.ini' in the same extracted program folder
3.) Go to "C:\" in Win Explorer and put the smiley GIF in this plain "C:\" directory (not sub-folder)
4.) Launch XnView MP 0.38.10 and go directly to Settings
5.) In Settings, disable 'open browser' and 'fullscreen when starting with file' then close the Settings
6.) In Browser (go to C:\) then double-click to open that same smiley GIF to the Viewer
7.) Now close the whole XnView MP program
8.) Now open the XnView MP program again (double-clicking on xnview.exe)
9.) Load the smiley GIF from "recent files" so it opens in a new tab (which leaves a first <Empty> tab still opened)
10.) Now simply drag from Win explorer any JPG image file to the viewer canvas
11.) Right, carefully drag JPG file to the opened tab of the smiley GIF tab (wait some seconds)....
12.) Then carefully drag to the <Empty> tab (do not drop as yet) and wait a few seconds...
13.) Right, while dragged onto the canvas of <Empty> tab, simply press "Esc" key to cancel the whole drag n drop process action
14.) You see, now notice how the tab closes at same time as canceling drag 'n' drop with "Esc"
15.) But even worse, the entire Drag n Drop feature get's blocked until needing to do a program restart.

=This is the mouse cursor image I get, when drag n drop is blocked/disabled; http://i56.tinypic.com/29ne0lk.png
=According to other bug reports by forum member: marsh, I think "Esc" key responsiveness to canceling drag n drop needs investigating/improving across XnView's family. I dunno?

Same related older bug (and causes this other bug); http://newsgroup.xnview.com/viewtopic.php?f=62&t=21544

Please let me know if reproduction works
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: 0.3.8.9 Win: Drag n Drop then pressing "Esc" to cancel d

Post by marsh »

budz45 wrote: When I drag a file item from Windows Explorer to any XnView MP tab but then I decide that I don't want to drop it by pressing "Esc" the tab that I am dragging the file to just closes.
I cannot confirm report. Your post was a reminder for other recent ones.
User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: 0.3.8.9 Win: Drag n Drop then pressing "Esc" to cancel d

Post by budz45 »

I tested this on an Win XP machine in an internet cafe and I conformed that the bug is present. Tab closes while pressing "Esc" as well as the drag n drop becoming blocked until program restart.

btw, you don't have to use "smiely GIF" - reproduction works for any image file tested, I recommend testing with JPG. You have to follow the reproduction steps I made..
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
User avatar
xnview
Author of XnView
Posts: 43710
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.3.8.9 Win: Drag n Drop then pressing "Esc" to cancel d

Post by xnview »

Ok, it's a QT bug, will be fixed soon
Pierre.