10 lines
159 B
JavaScript
10 lines
159 B
JavaScript
const isDragging = {
|
|
x: false,
|
|
y: false,
|
|
};
|
|
function isDragActive() {
|
|
return isDragging.x || isDragging.y;
|
|
}
|
|
|
|
export { isDragActive, isDragging };
|