lib/dedalus/application_view.rb in dedalus-0.2.17 vs lib/dedalus/application_view.rb in dedalus-0.2.18
- old
+ new
@@ -9,17 +9,19 @@
compose(app_screen)
end
def click
p [ :app_view_click ]
- composer.click_molecule(app_screen, [window.width, window.height], mouse_position: mouse_position)
+ composer.click_molecule(
+ app_screen,
+ [window.width, window.height],
+ mouse_position: mouse_position
+ )
end
def compose(screen)
- screen = composer.hover_molecule(screen, dimensions, mouse_position: mouse_position)
- composer.render!(screen, dimensions)
- # cursor.position = mouse_position
- # cursor.render
+ composer.hover_molecule(screen, dimensions, mouse_position: mouse_position)
+ composer.render!(screen.shown, dimensions)
end
def dimensions
[window.width, window.height]
end