Skip to content

Commit

Permalink
feat(stage): show drag cursor while dragging
Browse files Browse the repository at this point in the history
Closes #23

Signed-off-by: Lukas Mertens <git@lukas-mertens.de>

commit-id:34912215
  • Loading branch information
lukas-mertens committed Mar 12, 2024
1 parent a555be1 commit a69e64e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/evconf_konva/config_stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ export default class ConfigStage {
fill: 'rgba(255, 0, 0, 0)'
});
static_layer.add(this._bg);
static_layer.on("dragstart", () => {
this._stage.container().style.cursor = "grab";
});
static_layer.on("dragend", () => {
this._stage.container().style.cursor = "default";
this._bg.setAbsolutePosition({x: 0, y: 0});
});
}
Expand Down

0 comments on commit a69e64e

Please sign in to comment.