forked from GitHub-Mirrors/foundry-sw5e
Changes for 1.3.5
This commit is contained in:
parent
e2f002292b
commit
c0e71fe0f3
22 changed files with 102 additions and 68 deletions
|
@ -90,8 +90,7 @@ export default class AbilityTemplate extends MeasuredTemplate {
|
|||
if ( now - moveTime <= 20 ) return;
|
||||
const center = event.data.getLocalPosition(this.layer);
|
||||
const snapped = canvas.grid.getSnappedPosition(center.x, center.y, 2);
|
||||
this.data.x = snapped.x;
|
||||
this.data.y = snapped.y;
|
||||
this.data.update({x: snapped.x, y: snapped.y});
|
||||
this.refresh();
|
||||
moveTime = now;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue