]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7634
authorsoufiane <soufiane@cubedesigners.com>
Mon, 11 Aug 2025 13:21:12 +0000 (15:21 +0200)
committersoufiane <soufiane@cubedesigners.com>
Mon, 11 Aug 2025 13:21:12 +0000 (15:21 +0200)
resources/markdowneditor/js/markdowneditor.js
resources/markdowneditor/js/markdowneditor.zoom.js
resources/markdowneditor/style/style.sass

index e12799d343a38aa1e1ab0157fa27172eb36acb22..692002634151706ecdc63cafcf556a88f90a3eb3 100644 (file)
@@ -93,6 +93,14 @@ MarkdownEditor.prototype = {
                 if($(".handle.dragging").hasClass("preview-handle")) {
                     x = Math.max(0, e.pageX - panelWidth)
                     w = $(this).innerWidth() - panelWidth
+                }else {
+                    if($("#markdown-revision").width() > 51) {
+                        $("#linkeditor-icon-versions").addClass("active")
+                        $this.open = true
+                    }else {
+                        $("#linkeditor-icon-versions").removeClass("active")
+                        $this.open = false
+                    }
                 }
 
                 let ratio = x / w * 100
index 9cc7adcafa350633c92926acb1177941cc247bcd..bc641b437f700b54b8f677f6c5c342eb11ea235f 100644 (file)
@@ -40,8 +40,6 @@ MarkdowneditorZoom.prototype = {
                 const centerX = ($this.container.scrollLeft() + $this.container.width() / 2) / $this.zoom;
                 const centerY = ($this.container.scrollTop() + $this.container.height() / 2) / $this.zoom;
 
-                console.log(e)
-
                 let delta = e.deltaY;
                 if (delta === 0) {
                     return true;
@@ -74,7 +72,6 @@ MarkdowneditorZoom.prototype = {
             $this.zoomdragging = true
             $this.setZoom(3)
             $("#markdowneditor-zoom").css("cursor","zoom-out")
-            console.log(centerY,centerX)
             $this.moveZoomAfterWheelZoom(centerX,centerY);
         })
     },
index 5cff6cab9b1a8b7cb2cb474146547203ca0cc412..1cb0053da976a90b908fca3a255dd1cdbd275a48 100644 (file)
@@ -226,7 +226,6 @@ body
             height: 100%
             will-change: transform
             cursor: zoom-in
-            //transition: all .3s
             //position: absolute
 
     &-page