Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Schwarzentruber committed Apr 22, 2023
1 parent d4d8f74 commit aef52e8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/AnimationToolBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class AnimationToolBar {
static selection: SelectionActions = new SelectionActions();

static deselect(): void {
if(AnimationToolBar.selection.isEmpty)
if (AnimationToolBar.selection.isEmpty)
return;
AnimationToolBar.selection = new SelectionActions();
AnimationToolBar.update();
Expand Down Expand Up @@ -98,12 +98,12 @@ export class AnimationToolBar {
slide.classList.add("slideCurrent");

const actionIndex = (evt) => {
if (isCurrentSlide) {
const x = evt.clientX - slide.offsetLeft;
return from + Math.round(x * (to - from) / slide.clientWidth);
}
else
return to;
/* if (isCurrentSlide) {
const x = evt.clientX - slide.offsetLeft;
return from + Math.round(x * (to - from) / slide.clientWidth);
}
else*/
return to;
}

slide.onclick = (evt) => {
Expand Down

0 comments on commit aef52e8

Please sign in to comment.