From: Ethan A M. <sf...@us...> - 2011-11-22 22:48:14
|
On Monday, November 21, 2011 11:36:48 pm pl...@pi... wrote: > Hi, > > while we have the svg box open it may be a good time to point out a > minor but rather annoying bug in the mouse coordinate label. > > If the svg is zoomed (Opera or FFx) the coord values are still correct > but the label and it's dot do not match the mouse position. > > All is OK on zoomed until the scroll bar is moved. Then mouse readout > stays at the same point on the graph with the same (correct) coords, > rather than staying with the mouse and assuming a new value. > > Sounds like a detail that was not anticipated. Unfortunately, the people who did not anticipate that detail were the members of the W3C working group. They left the scrollbar coordinate information undefined in the SVG spec. (Or so I concluded after Googling. I suppose there may be some very recent addition). Many people have hit this same problem with other programs. Each browser handles it differently, so there may not be a single universal solution. I borrowed some code that seems to work on Firefox and Opera, but it works slightly differently on Chrome. I don't know about IE but suspect from the comments on the site where I found it that it won't work on IE. Ethan |