Sha256: 930763abd01177bd90bf7e325ada550bf6ea1704ea998eab67f521e3f6b4af75
Contents?: true
Size: 877 Bytes
Versions: 5
Compression:
Stored size: 877 Bytes
Contents
require 'rabbit/gtk' module Rabbit module Renderer module Display module ScrollHandler def initialize(*args, &block) super init_scroll_handler end private def init_scroll_handler end def set_scroll_event(widget) widget.signal_connect("scroll_event") do |widget, event| handled = call_hook_procs(@scroll_hook_procs, event) unless handled handled = true case event.direction when Gdk::EventScroll::Direction::UP @canvas.activate("PreviousSlide") when Gdk::EventScroll::Direction::DOWN @canvas.activate("NextSlide") else handled = false end end handled end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems