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

Scroll Issue on Blackberry Playbook #8

Closed
TonyBunce opened this issue May 18, 2011 · 1 comment
Closed

Scroll Issue on Blackberry Playbook #8

TonyBunce opened this issue May 18, 2011 · 1 comment

Comments

@TonyBunce
Copy link

When using SignaturePad in the browser of the blackberry playbook the page flickers up and down as you draw on the canvas.

The problem is calculateTouchZoomDiff is scrolling the page up and down to account for an ipad bug.
I was able to fix the problem by adding a check in calculateTouchZoomDiff to return if the useragent isn't an iOS device:

    function calculateTouchZoomDiff(o)
    {
        if(!((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))) {

            return {
                'top':  0
                ,'left': 0
            }
        }
    ...
    }

Something like this might be a better solution:
https://gist.github.com/431639

@thomasjbradley
Copy link
Contributor

Thanks for the bug fix. I hadn't tested it on the Playbook yet.

Cheers!

On 2011-05-18, at 5:06 PM, TonyBunce wrote:

When using SignaturePad in the browser of the blackberry playbook the page flickers up and down as you draw on the canvas.

The problem is calculateTouchZoomDiff is scrolling the page up and down to account for an ipad bug.
I was able to fix the problem by adding a check in calculateTouchZoomDiff to return if the useragent isn't an iOS device:

  function calculateTouchZoomDiff(o)
  {
      if(!((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))) {

          return {
              'top':  0
              ,'left': 0
          }
      }

Something like this might be a better solution:
https://gist.github.com/431639

Reply to this email directly or view it on GitHub:
#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants