cesarvillela / dat-gui

Automatically exported from code.google.com/p/dat-gui
0 stars 0 forks source link

Scrolling throws off color coordinates #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. http://workshop.chromeexperiments.com/examples/gui/#4--Color-Controllers
2. scroll down
3. try to choose a color

What is the expected output? What do you see instead?
expected to use scrolloffset in calculating

What version of the product are you using? On what operating system?
chrome 19 dev

Please provide any additional information below.

Original issue reported on code.google.com by matthewlein on 24 Mar 2012 at 3:48

GoogleCodeExporter commented 8 years ago
I figured out a bit of a hack fix for this using jQuery. See below:

    //ColorPickerFix
    var thisfix = this;
    $('.main').scroll(function() {
        var scroll = $('.main').scrollTop();
        common.extend(thisfix.__selector.style, {
          '-webkit-transform': 'translate(0px,' + (-scroll) + 'px)',
        });
    });

Original comment by d...@datavisu.al on 6 Dec 2013 at 12:07