Scroll Issue on Blackberry Playbook #8

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

Projects

None yet

2 participants

@TonyBunce

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
Collaborator

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