Skip to content

Commit

Permalink
remove duplicate selection handler call on click
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Aug 27, 2023
1 parent e271510 commit d1c7364
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ui/elements/element.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ function element:process_event(name, ...)
else
keyboard_navigation.deselect_element(self)
end
if self.selection_handler then
if self.selection_handler(self) then
return true
end
end
end
if self.click_handler and self.is_mouse_over then
if self.click_handler(self) then
Expand Down

0 comments on commit d1c7364

Please sign in to comment.