-
Notifications
You must be signed in to change notification settings - Fork 39
Detecting Touch Devices
Srdjan Djenader edited this page Dec 4, 2017
·
1 revision
imager: {
detectTouch: function() {
// Your code goes here
}
}
- This function must return true or false.
- If the function returns
true
, ImagerJs assumes it runs on a touch device and will …- adjust its toolbar size (see property toolbarSizeTouch)
- use touch-optimized settings for object control (see property objectControlsTouch)
- add touch events
- If this function is not specified explicitly, ImagerJs will use its own touch detection mechanism.
To disable touch detection entirely, simply return false
from the detectTouch
function:
detectTouch: function() {
return false;
}
Getting Started
Plugins
Advanced Configuration
Redactor Plugin Specific
DEMO