Skip to content
Snippets Groups Projects

Resolves #343 GUI and Frame Refactor

Merged Nicolas Pope requested to merge feature/gui2 into master
5 files
+ 12
4
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -133,8 +133,6 @@ Thumbnails::~Thumbnails() {
}
bool Thumbnails::mouseButtonEvent(const nanogui::Vector2i &p, int button, bool down, int modifiers) {
bool r = View::mouseButtonEvent(p, button, down, modifiers);
if (button == 1) {
if (!down) {
context_menu_->setPosition(p - mPos);
@@ -144,6 +142,8 @@ bool Thumbnails::mouseButtonEvent(const nanogui::Vector2i &p, int button, bool d
} else {
context_menu_->setVisible(false);
}
bool r = View::mouseButtonEvent(p, button, down, modifiers);
return r;
}
Loading