mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added sortable palette (basic mode)
Started advanced palette block
This commit is contained in:
@ -260,4 +260,11 @@ function getPixelPosition(index) {
|
||||
let y = Math.floor(linearIndex / layers[0].canvasSize[0]);
|
||||
|
||||
return [Math.ceil(x), Math.ceil(y)];
|
||||
}
|
||||
|
||||
/** Sets isDragging to false, used when the user interacts with sortable lists
|
||||
*
|
||||
*/
|
||||
function makeIsDraggingFalse(event) {
|
||||
dragging = false;
|
||||
}
|
Reference in New Issue
Block a user