瀏覽代碼

grab cursor on map_item if grabable

bach 1 年之前
父節點
當前提交
f53e08a005
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/components/ConcernementMapItem.vue

+ 8 - 1
src/components/ConcernementMapItem.vue

@@ -1896,6 +1896,9 @@ export default {
           this.resetHoverElmt();
           document.body.style.cursor = "auto";
         }
+        if (this.is_open) {
+          document.body.style.cursor = "auto";
+        }
       }.bind(this);
 
       this.paper_main_object.onMouseMove = function(event){
@@ -2009,7 +2012,11 @@ export default {
           } else {
             // console.log('move no result');
             this.resetHoverElmt();
-            document.body.style.cursor = "auto";
+            if (this.detailsZoomValue > 1) {
+              document.body.style.cursor = "grab";
+            } else {
+              document.body.style.cursor = "auto";
+            }
           }
         }
       }.bind(this);