mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 07:36:26 +01:00
Add different speed for ctrl key rotate
This commit is contained in:
parent
2962dd0679
commit
65b4a9cb66
1 changed files with 3 additions and 1 deletions
|
|
@ -66,8 +66,10 @@ export default class DhTemplateManager {
|
||||||
if (now - (moveTime || 0) <= 16) return;
|
if (now - (moveTime || 0) <= 16) return;
|
||||||
this.#activePreview.moveTime = now;
|
this.#activePreview.moveTime = now;
|
||||||
|
|
||||||
|
const multiplier = event.shiftKey ? 0.2 : 0.1;
|
||||||
|
|
||||||
object.document.updateSource({
|
object.document.updateSource({
|
||||||
direction: object.document.direction + event.deltaY * 0.2
|
direction: object.document.direction + event.deltaY * multiplier
|
||||||
});
|
});
|
||||||
object.renderFlags.set({ refresh: true });
|
object.renderFlags.set({ refresh: true });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue