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.
Summary
Breaking changes
clientX
andclientY
properties across the API are now named simplyx
andy
instead.BaseControllerSensor
->BaseMotionSensor
.KeyboardControllerSensor
->KeyboardMotionSensor
.BaseSensor.isActive
/PointerSensor.isActive
are removed, note that this affects to all classes that inherit from them. You can now instead useBaseSensor.drag
/PointerSensor.drag
property to check if drag is active. If it'snull
drag is inactive, otherwise it's active.BaseSensor.clientX
andBaseSensor.clientY
are now moved within a new publicBaseSensor.drag
property, which is an object containing those two porperties when drag is active. When drag is not activeBaseSensor.drag
isnull
.PointerSensor
'spointerId
,pointerType
,clientX
andclientY
properties are now moved withinPointerSensor.drag
property when drag is active. When drag is not activePointerSensor.drag
property isnull
.BaseMotionSensor.speed
andBaseMotionSensor.direction
are now protected properties instead of public properties and prefixed with an underscore.BaseMotionSensor.time
andBaseMotionSensor.deltaTime
properties are now moved withinBaseMotionSensor.drag
property when drag is active.Draggable
settings renamed:getElementStartPosition
->getStartPosition
.setElementPosition
->setPosition
.getElementPositionChange
->getPositionChange
.draggable.use
method functionality changed a bit. Typing is better now, but plugin has more responsibility.draggable.plugins
property is now a plain object instead of aMap
.draggable.synchronize()
->draggable.updatePosition()
.