Skip to content

Commit

Permalink
fix slider bug in tabled
Browse files Browse the repository at this point in the history
  • Loading branch information
r03ert0 committed May 19, 2024
1 parent d860127 commit 5b2e405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/public/js/microdraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ const Microdraw = (function () {
MUI.push(me.dom.querySelector("#sliderBlock #next"), () => { me.clickTool("next"); });
MUI.slider(me.dom.querySelector("#sliderBlock #slice"), (x, ev) => {
const newImageNumber = Math.round((me.imageOrder.length-1)*x/100);
if(ev.type === "mouseup") {
if(ev.type === "mouseup" || ev.type === "touchend") {
me.sliderOnChange(newImageNumber);
} else {
const imageNumber = me.imageOrder[newImageNumber];
Expand Down

0 comments on commit 5b2e405

Please sign in to comment.