mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Fix scroll events while animating
Fix slider issue with negative distance Add bunch of new functions to grid More accurate progress bar scaling with 9-slice images
This commit is contained in:
@@ -370,6 +370,25 @@ function M.is_web()
|
||||
end
|
||||
|
||||
|
||||
--- Check if device is HTML5 mobile
|
||||
-- @function helper.is_web_mobile
|
||||
-- @treturn boolean Is web mobile
|
||||
function M.is_web_mobile()
|
||||
if html5 then
|
||||
return html5.run("(typeof window.orientation !== 'undefined') || (navigator.userAgent.indexOf('IEMobile') !== -1);") == "true"
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
--- Check if device is mobile and can support multitouch
|
||||
-- @function helper.is_multitouch_supported
|
||||
-- @treturn boolean Is multitouch supported
|
||||
function M.is_multitouch_supported()
|
||||
return M.is_mobile() or M.is_web_mobile()
|
||||
end
|
||||
|
||||
|
||||
--- Simple table to one-line string converter
|
||||
-- @function helper.table_to_string
|
||||
-- @tparam table t
|
||||
|
Reference in New Issue
Block a user