enable unexclusive touch and mouse support
This commit is contained in:
parent
6a8ca00d31
commit
dcb39d6d43
6 changed files with 343 additions and 345 deletions
|
|
@ -13,7 +13,8 @@ var correctPosition = function (m, parent){
|
|||
m.css({'margin-top':totalHeight-(height + pos.top)})
|
||||
}
|
||||
}
|
||||
var ev = 'ontouchstart' in window ?'touchstart':'mousedown'
|
||||
|
||||
var ev = 'touchstart mousedown'
|
||||
|
||||
|
||||
var menu = function(e,actions,parent){
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
var updateDom = require('./data-workers').updateDom,
|
||||
widgetOptions = require('../widgets').widgetOptions
|
||||
|
||||
var ev = 'ontouchstart' in window ?'touchstart':'mousedown'
|
||||
var ev = 'touchstart mousedown'
|
||||
|
||||
|
||||
var editObject = function(container, data, refresh){
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ var data = require('./data-workers'),
|
|||
|
||||
var init = function(){
|
||||
|
||||
var ev = 'ontouchstart' in window ?'touchstart':'mousedown'
|
||||
var ev = 'touchstart mousedown'
|
||||
|
||||
$('body').off('.editor').on(ev+'.editor fake-right-click',function(e,d){
|
||||
|
||||
if (!EDITING) return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue