From 9dc838f430690a5397062a7bd7774b31e8048551 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Wed, 29 May 2019 16:21:33 +0800 Subject: [PATCH] pointer-events --- public/react/public/js/edu_tpi.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/react/public/js/edu_tpi.js b/public/react/public/js/edu_tpi.js index d1df64aa..8743a0ac 100644 --- a/public/react/public/js/edu_tpi.js +++ b/public/react/public/js/edu_tpi.js @@ -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;