[go: up one dir, main page]

Skip to content

Commit

Permalink
animation bar: button new slide (cleaning main.ts)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Schwarzentruber committed Feb 16, 2024
1 parent 5269af3 commit abb2049
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,7 @@ function load() {

document.getElementById("canvasBackground").onpointermove = () => { console.log("mousemove on the background should not occur") };

document.getElementById("previousSlide").onclick = () => Share.execute("timelinePreviousPausedFrame", []);
document.getElementById("nextSlide").onclick = () => Share.execute("timelineNextPausedFrame", []);
document.getElementById("timelineMenu").onclick = (evt) => {
AnimationToolBar.showMenu(evt.pageX, evt.pageY);
evt.stopPropagation();//prevent the menu to be hidden because of a click on the toolbar
}

// these button are hidden in the GUI
document.getElementById("previousFrame").onclick = () => Share.execute("timelinePreviousFrame", []);
document.getElementById("nextFrame").onclick = () => Share.execute("timelineNextFrame", []);


window.addEventListener("click", () => { AnimationToolBar.hideMenu(); MagnetManager.hideMenu() });

installMouseEventsCanvas();
Expand Down

0 comments on commit abb2049

Please sign in to comment.