<el-scrollbar
class="scrollbar"
wrap-class="scrollbar-wrap"
view-class="scrollbar-view"
ref="scrollbar"
>
<img :src='imgSrc' @mousedown="clickThumbHandler" draggable="false"/>
</el-scrollbar>
clickThumbHandler(e) {
e.stopImmediatePropagation();
this.cursorDown = true;
this.move = null
this.downPos = {
x: 0,
y: 0
}
on(document, 'mousemove', this.mouseMoveDocumentHandler);
on(document, 'mouseup', this.mouseUpDocumentHandler);
},
mouseMoveDocumentHandler(e) {
const step = 15
const wrap = this.$refs.scrollbar.$refs.wrap
if(this.cursorDown) {
if(!this.move) {
this.move = {
dx: e.clientX - this.downPos.x,
dy: e.clientY - this.downPos.y
}
} else {
if(this.move.dx > e.cl