Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scrollTop problem in chrome #16

Open
wants to merge 238 commits into
base: master
Choose a base branch
from

Conversation

sardinax
Copy link

I'm new here.

I think that there's a problem calling body.scrollTop in Chrome, the position of mouse doesn't get a good mouseY position (chrome says that body.scrollTop is deprecated).

My solution is adding two lines after line 8227 in function calculateOffset(curEvent, event):

offsetX += document.documentElement.scrollLeft;
offsetY += document.documentElement.scrollTop;

But sure there is a better solutions, i'll be waiting new tips...

Pomax and others added 30 commits August 5, 2012 10:18
Added String.matches() [#1886]
QuickStart links pointed to 404s; also, “relatively links” → “relative links”
[#1885] Fixed ArrayList Iterator
…nit tests from PVector.pde to PVector-sub.pde and added a whole bunch more unit tests for sub.
Fixed ArrayList constructor to accept 'anything that has .toArray' instead of just ArrayList
I Added PVector.sub() which makes the PVector.sub perf go from 311ms to 190ms!
Fix documentation regarding exit() and draw() [#1197]
rebind Processing.instances when processingInstances is cleared
Bug 1923 - Ignore image type in loadImage
Pomax and others added 30 commits September 28, 2016 07:03
improved width/height check in 2d context rect()
* Improve random() (fixes #244, #256)

* Fix random with 2 args; improve test suite

* Fix test suite as per comments
* Issue #99 : withTouch() touchstart event was relying on direct access to the
eventHandlers array within the Processing module to remove any existing mouse
event handlers.

Instead of exposing the eventHandlers array directly, this change exposes a
method called detachEventHandlersByTypeMatch() which takes a regex of event
types, iterates through the list of existing event handlers, and detaches the
handlers that match.
* Fix for color() in HSB mode not correctly dealing with negative hue values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet