]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7634 @0:05
authorsoufiane <soufiane@cubedesigners.com>
Thu, 10 Jul 2025 14:33:05 +0000 (16:33 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 10 Jul 2025 14:33:05 +0000 (16:33 +0200)
resources/markdowneditor/js/markdowneditor.js
resources/markdowneditor/style/style.sass

index 06c5799e44eedcfcbc2e3064356bd5ecb83af289..2d03009757260aa633221e85d4beae649fc61c01 100644 (file)
@@ -39,6 +39,7 @@ MarkdownEditor.prototype = {
             let ratio= Math.min(33.33, x / w * 100)
 
             if($(".handle").hasClass("dragging")) {
+                $("body").addClass("user-select-none")
                 requestAnimationFrame(function() {
                     $("#markdown-preview").width(ratio+'%')
                 })
@@ -51,6 +52,7 @@ MarkdownEditor.prototype = {
 
         $(document).on('mouseup', function (e) {
             $(".handle").removeClass("dragging")
+            $("body").removeClass("user-select-none")
         })
     },
 
index 99209664f41b8b7da3d96a4f2199967e5c43beed..976ed57d0b1dd583027f307cd172769d7ead7b0f 100644 (file)
@@ -1,6 +1,9 @@
 body
     padding: 0
     margin: 0
+    &.user-select-none
+        user-select: none
+
 .markdown
     &-editor
         display: flex