davidaurelio / TouchScroll

TouchScroll is a JavaScript- and CSS 3-based scroller for devices using Webkit Mobile. It is meant to mimic “native” scrolling feeling and behavior as much as possible.
http://uxebu.com/blog/2010/04/27/touchscroll-a-scrolling-layer-for-webkit-mobile/
BSD 2-Clause "Simplified" License
474 stars 61 forks source link

scrollTo() method does not work on Blackberry #29

Open mikegordienko-devpronet opened 11 years ago

mikegordienko-devpronet commented 11 years ago

There's a page with a list. When you click on the list item the content for the item is loaded via ajax. In ajax callback .scrollTo() method is used to scroll the page up. And this method makes error. I've found that bug appears here: getMatrixFromNode = function(/HTMLElement/node){ /WebKitCSSMatrix/ var doc = node.ownerDocument, transform = window.getComputedStyle(node).webkitTransform;

  return new WebKitCSSMatrix(transform);
}

typeof WebKitCSSMatrix returns 'object' instead of 'function'