Compare commits

...

2 Commits

Author SHA1 Message Date
2fb8a8fb71
Merge branch 'main' into dev 2025-12-26 14:08:03 -06:00
02b3f9a913
production default quieter debugging 2025-12-26 14:07:39 -06:00
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
export const MASS_CREATION_RATE = 0.001; export const MASS_CREATION_RATE = 0.001;
export const DISPLAY_OBJECTS_INFO = false; export const DISPLAY_OBJECTS_INFO = false;
export const DISPLAY_CURSOR_INFO = true; export const DISPLAY_CURSOR_INFO = false;
export const DISPLAY_VELOCITY_VECTORS = true; export const DISPLAY_VELOCITY_VECTORS = true;
export const POINTER_HISTORY_SIZE = 20; export const POINTER_HISTORY_SIZE = 20;
export const VELOCITY_VECTOR_SCALE = 0.2; export const VELOCITY_VECTOR_SCALE = 0.2;

View File

@ -24,7 +24,9 @@ export class Pointer {
const el = window; const el = window;
el.addEventListener('pointermove', e => { el.addEventListener('pointermove', e => {
if (DISPLAY_CURSOR_INFO) {
this.sim.info['pointermove'] = [`${e.clientX}, `, `${e.clientY}`]; this.sim.info['pointermove'] = [`${e.clientX}, `, `${e.clientY}`];
}
if (this.draggingElement) { if (this.draggingElement) {
// e.preventDefault(); // e.preventDefault();
this.draggingElement.dragging.pointerEnd = { this.draggingElement.dragging.pointerEnd = {