Class Index | File Index

Classes


Class gui.IOSSafariSupport


Defined in: IOSSafariSupport.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
gui.IOSSafariSupport(eventManager)
Drop-in workaround for several bugs/quirks found in iOS Safari.
Method Summary
Method Attributes Method Name and Description
 
destroy(callback)
<inner>  
Mobile browsers tend to automatically scroll to a focussed element However we do not want this uncontrollable animated scroll when the keyboard is already open.
Class Detail
gui.IOSSafariSupport(eventManager)
Drop-in workaround for several bugs/quirks found in iOS Safari.
Parameters:
{!gui.EventManager} eventManager
Method Detail
{undefined} destroy(callback)
Parameters:
{!function(!Error=)} callback
Returns:
{undefined}

<inner> {undefined} suppressFocusScrollIfKeyboardOpen()
Mobile browsers tend to automatically scroll to a focussed element However we do not want this uncontrollable animated scroll when the keyboard is already open. Therefore, we try to guess if it is open, and in that case momentarily hide the eventTrap, and open it after the next animation frame. This causes the keyboard to not know where the event trap is when it is opening, thus resulting in no scroll, just like we wanted.
Returns:
{undefined}

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Aug 06 2015 04:10:40 GMT+0200 (MESZ)