File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ExtJs: Find mouse click coordinates relative to the sprites coordinate system.

 
Er. Rohit Sharma
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I need mouse click coordinates relative to the sprites coordinate system. It is SVG firefox and VML in IE. I am using Ext.EventObject getPageX() and getPageY() method to find pageX/pageY coordinates. But this is not working if I scroll the page up or down
In IE it is working but how to translate browser coordinates to VML coordinate system??
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so subtract the scrollTop/scrollLeft values of the page position.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic