Sha256: 64816ed06884c63187678db3a584d6243160030c98a71d5a9f0f750fa2a64e0b

Contents?: true

Size: 818 Bytes

Versions: 3

Compression:

Stored size: 818 Bytes

Contents

include('../../uki-core/const.js'); 

/**
 * Global uki constants, for speed optimization and better merging
 */
/** @ignore */

    // Device sniffing
var isWebkit = /webkit/i.test(ua),
    isIphone = /iphone/i.test(ua)
    isIpad = /ipad/i.test(ua),
    isAndroid = /android/i.test(ua),
    isTouch = isIphone || isIpad || isAndroid,                                    
    isStandalone = nav.standalone,
    
    // Event sniffing
    touchStart = isTouch ? 'touchstart' : 'mousedown',
    touchMove = isTouch ? 'touchmove' : 'mousemove',
    touchEnd = isTouch ? 'touchend' : 'mouseup',
    
    // CSS3 Translate3d helper
    cssHas3d = ('WebKitCSSMatrix' in window && 'm11' in new WebKitCSSMatrix()),
    cssTranslateOpen = 'translate' + (cssHas3d ? '3d(' : '('),
    cssTranslateClose = cssHas3d ? ',0)' : ')';

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
uki-1.1.4 frameworks/uki/src/uki-touch/touch/const.js
uki-1.1.3 frameworks/uki/src/uki-touch/touch/const.js
uki-1.1.2 frameworks/uki/src/uki-touch/touch/const.js