| Issue 28: | Does not work on Bada | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Running examples/simple/index.jsp on Bada What is the expected output? What do you see instead? bug : There is no scroll. All the page is fixed. What version of the product are you using? On what operating system? - iScroll 3.6 - BADA os 1.0
Sep 21, 2010
Add var isBada :-) I think it's better to use navigator.userAgent instead of appVersion cause in bada, appVersion only return '5.0'. isIphone = (/iphone/gi).test(navigator.userAgent), isIpad = (/ipad/gi).test(navigator.userAgent), isAndroid = (/android/gi).test(navigator.userAgent), isBada = (/bada/gi).test(navigator.userAgent), isTouch = isIphone || isIpad || isAndroid || isBada,
Sep 21, 2010
I prefere to use appVersion on devices that support it. Actually if the device supports touches and webkitCSSMatrix we don't care of the device name.
Sep 21, 2010
You can detect if an event is present without browser sniffing (it avoids having problems with new browsers). There is a good article : http://perfectionkills.com/detecting-event-support-without-browser-sniffing/ You can do somthing like that : function isEventSupported(eventName) { var el = document.createElement('div'); eventName = 'on' + eventName; var isSupported = (eventName in el); if (!isSupported) { el.setAttribute(eventName, 'return;'); isSupported = typeof el[eventName] == 'function'; } el = null; return isSupported; } var isTouch = isEventSupported('touchstart'); // no need to detect browser
Sep 21, 2010
Unfortunately testing for touch events is not always the best way, that's why I'm testing for device name, but checking for a serie of supported functionalities could work. |
Owner: matt3o
Labels: -Priority-Medium Priority-Low