Compare commits
No commits in common. "2fb8a8fb7150bbccb9fb4167bde53f2582553e97" and "ee28aab9bf6bcd8219979b4d54522a161d91754c" have entirely different histories.
2fb8a8fb71
...
ee28aab9bf
@ -1,6 +1,6 @@
|
||||
export const MASS_CREATION_RATE = 0.001;
|
||||
export const DISPLAY_OBJECTS_INFO = false;
|
||||
export const DISPLAY_CURSOR_INFO = false;
|
||||
export const DISPLAY_CURSOR_INFO = true;
|
||||
export const DISPLAY_VELOCITY_VECTORS = true;
|
||||
export const POINTER_HISTORY_SIZE = 20;
|
||||
export const VELOCITY_VECTOR_SCALE = 0.2;
|
||||
|
||||
@ -24,9 +24,7 @@ export class Pointer {
|
||||
const el = window;
|
||||
|
||||
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) {
|
||||
// e.preventDefault();
|
||||
this.draggingElement.dragging.pointerEnd = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user