Pārlūkot izejas kodu

grab cursor on map_item if grabable

bach 3 mēneši atpakaļ
vecāks
revīzija
f53e08a005
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  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);