|
|
|
@ -184,7 +184,7 @@ function handle_event(state, context, event, options = {}) {
@@ -184,7 +184,7 @@ function handle_event(state, context, event, options = {}) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
case EVENT.PREDRAW: { |
|
|
|
|
geometry_add_point(state, context, event.user_id, {'x': event.x, 'y': event.y}, 0.5); // TODO: event.pressure
|
|
|
|
|
geometry_add_point(state, context, event.user_id, {'x': event.x, 'y': event.y, 'pressure': 128}, false); // TODO: add pressure to predraw events
|
|
|
|
|
need_draw = true; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|