My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 139: ondragdrop event.x and event.y are not correct on resized gadget
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by patrick....@gmail.com, Apr 21, 2011
What steps will reproduce the problem?
1. Create gadget using ondragdrop with height of 250 and width of 250
2. Re-size the gadget to 50%
2. Drag a file on to the bottom right corner of gadget. 

What is the expected output? What do you see instead?
You should still expect event.x=250 and event.y=250 like onclick when a gadget is resized. 
You get event.x=125 and event.y=125.

What version of the product are you using? On what operating system?
Google Desktop 5.9.1005.12335-en-pb
Windows 7 x64

Please provide any additional information below.
onclick returns the correct event.x and event.y while ondragdrop does not calculate the correct scale for the mouse event and is give the actual pixel coordinate of the scaled gadget.

BadDragDrop.gg
4.1 KB   Download

Powered by Google Project Hosting