@@ 46,11 46,6 @@ const ARROW_ANGLE_DIV = 6; // arrow angle
function stateUpdated() {
// TODO: save state
- if (state.selected !== null) {
- can.style.cursor = "move";
- } else {
- can.style.cursor = "auto";
- }
state.rendering.dirty = true;
}
@@ 292,6 287,12 @@ function render() {
state.jhat = transState.jhat;
if (transState.done) state.curTransition = null;
+ if (state.selected !== null) {
+ can.style.cursor = "move";
+ } else {
+ can.style.cursor = "auto";
+ }
+
// grid
ctx.clearRect(0, 0, can.width, can.height);
const det = getDet();