youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

Bug trac frame MouseOver overlay #193

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem ?
1. create div in Body.style.overflow = 'hidden'
2. div.style.overFlow : 'scroll'
3. create graph in cell in the div
4. scroll div

What is the expected output? What do you see instead?
Cells mouse info don't appear

What version of the product are you using? On what operating system?
0.2

Please provide any additional information below.

I changed the lines 2462 to 2473 to take into account the scrolled DIV between 
the graph and the body.
        if(event.clientX != null){
//          var de = document.documentElement, b = document.body;
            ax = event.clientX ;
            ay = event.clientY ;
            this.overlay.ancestors().each(function(l){
                ax += (l.scrollLeft || 0);
                ay += (l.scrollTop || 0);
            });
        }else{
            ax = event.pageX;
            ay = event.pageY;
        }

I keep a bug related to the recovery points on the axis scrolled here:
if(xpow < xsens /*&& ypow < ysens */&& Math.sqrt(xpow+ypow) < n.dist){
(L : 2857)
Thanks;

Original issue reported on code.google.com by mb.lundi...@gmail.com on 6 Jun 2011 at 9:10