mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
feature : zoom level : code review
+ Switched from BITWISE OR 0 (x | 0) to Math.floor for readability
This commit is contained in:
@ -207,8 +207,8 @@
|
||||
y = y + this.offset.y * cellSize;
|
||||
|
||||
return {
|
||||
x : (x / cellSize) | 0,
|
||||
y : (y / cellSize) | 0
|
||||
x : Math.floor(x / cellSize),
|
||||
y : Math.floor(y / cellSize)
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user