Class gui.IOSSafariSupport
Defined in: IOSSafariSupport.js.
Constructor Attributes | Constructor Name and Description |
---|---|
gui.IOSSafariSupport(eventManager)
Drop-in workaround for several bugs/quirks
found in iOS Safari.
|
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}