aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes ExtJs: Find mouse click coordinates relative to the sprites coordinate system. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "ExtJs: Find mouse click coordinates relative to the sprites coordinate system." Watch "ExtJs: Find mouse click coordinates relative to the sprites coordinate system." New topic
Author

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

Er. Rohit Sharma
Greenhorn

Joined: Dec 11, 2008
Posts: 16
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
so subtract the scrollTop/scrollLeft values of the page position.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ExtJs: Find mouse click coordinates relative to the sprites coordinate system.