Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • 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
  • 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
  • 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