|
@@ -302,6 +302,33 @@
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+ $(function () {
|
|
|
+ //阻止事件冒泡
|
|
|
+ //不仅仅要stopPropagation,还要preventDefault
|
|
|
+ function pauseEvent(e){
|
|
|
+ if(e.stopPropagation) e.stopPropagation();
|
|
|
+ if(e.preventDefault) e.preventDefault();
|
|
|
+ e.cancelBubble=true;
|
|
|
+ e.returnValue=false;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ let pe = 0;
|
|
|
+ $('#right-spr').mousedown(function (ev) {
|
|
|
+ $('iframe').css('pointerEvents', 'none');
|
|
|
+ let e = ev||event;
|
|
|
+ pauseEvent(e);
|
|
|
+ pe = 1;
|
|
|
+ });
|
|
|
+ $(document).mouseup(function (ev) {
|
|
|
+ if(pe) {
|
|
|
+ $('iframe').css('pointerEvents', 'auto');
|
|
|
+ pe = 0;
|
|
|
+ let e = ev||event;
|
|
|
+ pauseEvent(e);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
rptArchiveObj.iniPage();
|
|
|
|
|
|
</script>
|