Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
event.intersects
– useevent.intersections
event.stopPropagating
– useevent.stopPropagation
event.delta
is now reset to0
following aclick
.pointerleave
handlers were sent previous intersections atevent.intersections
, now current intersections.@dblclick
now fires whenever the canvasdblclick
is emitted. Any TresObject with an@dblclick
handler will receive the event if it is under the pointer. (Previously objects not under the initial click did not receive the@dblclick
.)event.pointer
is now defined – previously typed but wasundefined
in implementation.event.unprojectedPoint
is now properly calculated. Was previously left asTODO
.event.eventObject
holds the object that registered the event handler. Was previously typed butundefined
in implementation.@pointerdown
. Keep support for old-style ("kebab-case") event names, e.g.@pointer-down
, and warn. Mixing both on the same object is not supported and may lead to handlers being overwritten.@pointer{leave,out}
was fired multiple times on a single "leave" – Issuepointer-{leave,out}
fired multiple times on single "leave" #801pointermissed
fires when the object that registered the handler is missed – previously only fired when ALL objects were missed:events={filter: (intersections) => ...}
stop, prevent, self, once
. (Tres cannot supportpassive
and does not currently supportcapture
.):events-target
prop, allow users to specify an HTMLaddEventListener
target – allows Tres to respond to events, even if there's an overlay on the canvas.:events-enabled
prop, alloweventManager
to be enabled/disabled while Tres is running.:events
prop, alloweventManager
functions to be set/overwritten (non-reactive).:events
prop, allow events system to be disabled completely:<TresCanvas :events="null" />
(non-reactive)pointer{leave,out}
is triggered (if necessary) just prior to object removal.:blocking="true"
makes a subtree "solid"; objects behind objects in the subtree will not be "hit".context.eventManager
now creates its own raycaster(s) or no raycaster – depending on needs. It does not usecontext.raycaster
.useRaycaster
composable.useEventManager
composable.eventsManager
is dependency-inverted. Users can set/modify its internal functions.