pointer-events

pre_develop
hjm 6 years ago
parent 478b73bbfb
commit 9dc838f430

@ -26,7 +26,7 @@ $(function(){
var nRow = 0;
//var nCol = 0;
lab.live('mousedown touchstart',function(){
$('#game_webssh').css('pointer-events', 'none')
$('#contentIframe').css('pointer-events', 'none')
dragging = true;
leftOffset = $(".labelN").offset().left;
wrapWidth = $(".labelN").width();
@ -35,7 +35,7 @@ $(function(){
);
cen.live('mousedown',function(){
// 使得iframe不捕获事件
$('#game_webssh').css('pointer-events', 'none')
$('#contentIframe').css('pointer-events', 'none')
flag = true;
topOffset = $(".centerH").offset().top;
wrapHeight = $(".centerH").height();
@ -111,7 +111,7 @@ $(function(){
doc.live("mouseup touchend", function(e) {
// 使得iframe可以继续捕获事件
$('#game_webssh').css('pointer-events', 'inherit')
$('#contentIframe').css('pointer-events', 'inherit')
flag = false;
dragging = false;
e.cancelBubble = true;

Loading…
Cancel
Save