production default quieter debugging
This commit is contained in:
parent
bc490b4878
commit
02b3f9a913
@ -1,6 +1,6 @@
|
||||
export const MASS_CREATION_RATE = 0.001;
|
||||
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 POINTER_HISTORY_SIZE = 20;
|
||||
export const VELOCITY_VECTOR_SCALE = 0.2;
|
||||
|
||||
@ -24,7 +24,9 @@ export class Pointer {
|
||||
const el = window;
|
||||
|
||||
el.addEventListener('pointermove', e => {
|
||||
this.sim.info['pointermove'] = [`${e.clientX}, `, `${e.clientY}`];
|
||||
if (DISPLAY_CURSOR_INFO) {
|
||||
this.sim.info['pointermove'] = [`${e.clientX}, `, `${e.clientY}`];
|
||||
}
|
||||
if (this.draggingElement) {
|
||||
// e.preventDefault();
|
||||
this.draggingElement.dragging.pointerEnd = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user