elm-lang / debug.elm-lang.org

Control time and change history. Laszlo's debugger lets you pause, rewind, and replay programs, swapping in new code to debug.
BSD 3-Clause "New" or "Revised" License
66 stars 14 forks source link

tracePath.canvas captures all clicks #1

Closed evancz closed 10 years ago

evancz commented 10 years ago

To show the path of traced elements, a canvas is always placed over the entire viewer. For a program that uses mouse navigation, such as TextReverse.elm, this means it is impossible to move around.

Perhaps the canvas needs to be shown only when things are paused? I'm not sure if there's a way to get events to propagate correctly otherwise.

P.S. This is really a bug in the debugger branch of the compiler, but I don't want to clutter up that issue tracker.

osnr commented 10 years ago

Did you try CSS pointer-events: none?

evancz commented 10 years ago

Trying now! That should do it though :)

evancz commented 10 years ago

Yep, that did the trick: https://github.com/elm-lang/Elm/commit/d734d954df01b7329097a3a3221b506bd9c39367