fbshipit-source-id: 2cd940396d650342920b28835f6e672febe6b55c
This commit is contained in:
@@ -10,7 +10,7 @@ import type {Rect} from './geometry.js';
|
||||
export const SNAP_SIZE = 16;
|
||||
|
||||
export function snapGrid(val: number): number {
|
||||
return val - val % SNAP_SIZE;
|
||||
return val - (val % SNAP_SIZE);
|
||||
}
|
||||
|
||||
export function getPossibleSnappedPosition(
|
||||
|
||||
Reference in New Issue
Block a user