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
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;
$this.zoomdragging = true
$this.setZoom(3)
$("#markdowneditor-zoom").css("cursor","zoom-out")
- console.log(centerY,centerX)
$this.moveZoomAfterWheelZoom(centerX,centerY);
})
},