Commit b74391aa authored by Ian Vollick's avatar Ian Vollick Committed by Commit Bot

[vr] Clarify comment in UiInputManager

This clarifies a comment regarding multiple dispatch per post-review
comment.

Bug: None
Change-Id: I9d2985559883ee3e69730f8e62fc94c95a1bd7f1
Reviewed-on: https://chromium-review.googlesource.com/594869Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
Commit-Queue: Ian Vollick <vollick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#490803}
parent 5f56a18b
...@@ -77,9 +77,9 @@ void UiInputManager::HandleInput(const gfx::Vector3dF& laser_direction, ...@@ -77,9 +77,9 @@ void UiInputManager::HandleInput(const gfx::Vector3dF& laser_direction,
} }
target_element = input_locked_element_; target_element = input_locked_element_;
} else if (!in_scroll_ && !in_click_) { } else if (!in_scroll_ && !in_click_) {
// TODO(vollick): support hit test opacity. I.e., we may want to dispatch to // TODO(vollick): support multiple dispatch. We may want to, for example,
// one of the elements in the list of records. For the moment, we will // dispatch raw events to several elements we hit (imagine nested horizontal
// assume that dispatch is to the first. // and vertical scrollers). Currently, we only dispatch to one "winner".
target_element = *out_reticle_render_target; target_element = *out_reticle_render_target;
if (target_element && IsScrollEvent(*gesture_list)) { if (target_element && IsScrollEvent(*gesture_list)) {
UiElement* ancestor = target_element; UiElement* ancestor = target_element;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment