-
useTransform
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> useTransform
By default the engine uses the transform CSS property. Setting this to false scrolls like we
were in 2007, ie: using the top/left (and thus the scroller needs to be absolutely
positioned).
This might be useful when scrolling sensitive content such as Flash, iframes and videos, but
be warned: performance loss is huge.
Default: true
-
useTransition
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> useTransition
iScroll uses CSS transition to perform animations (momentum and bounce). By setting this to
false, requestAnimationFrame is used instead.
On modern browsers the difference is barely noticeable. On older devices transitions perform
better.
Default: true
-
HWCompositing
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> HWCompositing
This option tries to put the scroller on the hardware layer by appending translateZ(0) to the
transform CSS property. This greatly increases performance especially on mobile, but there
are situations where you might want to disable it (notably if you have too many elements and
the hardware can't catch up).
If unsure leave iScroll decide what's the optimal config. For best performance all the above
options should be set to true (or better leave them undefined as they are set to true
automatically). You may try to play with them in case you encounter hiccups and memory leaks.
Default: true
-
bounce
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> bounce
When the scroller meets the boundary it performs a small bounce animation. Disabling bounce
may help reach smoother results on old or slow devices.
Default: true
-
click
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> click
To override the native scrolling iScroll has to inhibit some default browser behaviors, such
as mouse clicks. If you want your application to respond to the click event you have to
explicitly set this option to true. Please note that it is suggested to use the custom tap
event instead (see below).
Default: false
-
disableMouse
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> disableMouse
By default iScroll listens to all pointer events and reacts to the first one that occurs. It
may seem a waste of resources but feature detection has proven quite unreliable and this
listen-to-all approach is our safest bet for wide browser/device compatibility.
If you have an internal mechanism for device detection or you know in advance where your
script will run on, you may want to disable all event sets you don't need (mouse, pointer or
touch events).
Default: false
-
disablePointer
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> disablePointer
By default iScroll listens to all pointer events and reacts to the first one that occurs. It
may seem a waste of resources but feature detection has proven quite unreliable and this
listen-to-all approach is our safest bet for wide browser/device compatibility.
If you have an internal mechanism for device detection or you know in advance where your
script will run on, you may want to disable all event sets you don't need (mouse, pointer or
touch events).
Default: false
-
disableTouch
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> disableTouch
By default iScroll listens to all pointer events and reacts to the first one that occurs. It
may seem a waste of resources but feature detection has proven quite unreliable and this
listen-to-all approach is our safest bet for wide browser/device compatibility.
If you have an internal mechanism for device detection or you know in advance where your
script will run on, you may want to disable all event sets you don't need (mouse, pointer or
touch events).
Default: false
-
mouseWheel
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> mouseWheel
Listen to the mouse wheel event.
Default: false