From: soufiane Date: Mon, 11 Aug 2025 13:21:12 +0000 (+0200) Subject: wip #7634 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0ed28df1272626b4176eecfa3fbd4818de3c0378;p=fluidbook-toolbox.git wip #7634 --- diff --git a/resources/markdowneditor/js/markdowneditor.js b/resources/markdowneditor/js/markdowneditor.js index e12799d34..692002634 100644 --- a/resources/markdowneditor/js/markdowneditor.js +++ b/resources/markdowneditor/js/markdowneditor.js @@ -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 diff --git a/resources/markdowneditor/js/markdowneditor.zoom.js b/resources/markdowneditor/js/markdowneditor.zoom.js index 9cc7adcaf..bc641b437 100644 --- a/resources/markdowneditor/js/markdowneditor.zoom.js +++ b/resources/markdowneditor/js/markdowneditor.zoom.js @@ -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); }) }, diff --git a/resources/markdowneditor/style/style.sass b/resources/markdowneditor/style/style.sass index 5cff6cab9..1cb0053da 100644 --- a/resources/markdowneditor/style/style.sass +++ b/resources/markdowneditor/style/style.sass @@ -226,7 +226,6 @@ body height: 100% will-change: transform cursor: zoom-in - //transition: all .3s //position: absolute &-page