主权项 |
1. A computer-implemented method for dynamically adapting a user interface (UI) of a web application running within a browser executing on a user computer device, said UI being adapted based on UI capabilities of the user computer device in order to improve application usability, the method comprising the steps, implemented in the user computer device, of:
(a) determining whether the user computer device is touch-enabled or not; (b) determining whether a container on a screen of the application is scrollable; and (c) when the container is determined to be scrollable and the user computer device is determined to not be touch-enabled, automatically activating a built-in HTML scroll bar of the container, and wherein when the container is determined to be scrollable and the user computer device is determined to be touch-enabled, the built-in HTML scroll bar is inactive and a built-in touch-enabled scroll feature of the container is useable by touch gestures. |