Fix wrong comments in DragResizeInputListener
Geometry updates were used to signal a complete cycle of resize handling, and the readiness of taking the next batch of input events for handling. However, it's not guaranteed there will be a gemoetry update for all input events we handle, so we changed the way we handle batched input events to be Choreographer based, but we left the incorrect comment until now. Bug: 239973193 Test: Builds. Change-Id: I171d0403ff5fbc406b1de33019d0a1efbd8dfc09
This commit is contained in:
@@ -130,12 +130,7 @@ class DragResizeInputListener implements AutoCloseable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates geometry of this drag resize handler. Needs to be called every time there is a size
|
||||
* change to notify the input event receiver it's ready to take the next input event. Otherwise
|
||||
* it'll keep batching move events and the drag resize process is stalled.
|
||||
*
|
||||
* This is also used to update the touch regions of this handler every event dispatched here is
|
||||
* a potential resize request.
|
||||
* Updates the geometry (the touch region) of this drag resize handler.
|
||||
*
|
||||
* @param taskWidth The width of the task.
|
||||
* @param taskHeight The height of the task.
|
||||
|
||||
Reference in New Issue
Block a user