feat: Support mouse scroll. (#201)

This commit is contained in:
Arthur Sonzogni
2021-09-08 09:36:37 +02:00
committed by GitHub
parent ed28bad02a
commit 4d50dadb41
12 changed files with 237 additions and 109 deletions

View File

@@ -22,8 +22,13 @@ class Reflect : public Node {
void SetBox(Box box) final {
reflected_box_ = box;
Node::SetBox(reflected_box_);
children_[0]->SetBox(reflected_box_);
Node::SetBox(box);
children_[0]->SetBox(box);
}
void Render(Screen& screen) final {
reflected_box_ = Box::Intersection(screen.stencil, reflected_box_);
return Node::Render(screen);
}
private: