From 5fad64d07b6f28605c6f7c40cd65a04167186ae7 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 23 Dec 2009 01:14:32 +0100 Subject: Inverting wheel behavior. --- dalos.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'dalos.lua') diff --git a/dalos.lua b/dalos.lua index 8e95028..bf54c04 100644 --- a/dalos.lua +++ b/dalos.lua @@ -429,6 +429,7 @@ dalosp.canvas = { wheel_cb = function (self, delta, x, y, status) local obj = self:findobj(x, y) + delta = -delta if delta > 0 then delta = math.floor(delta + 0.5) else delta = -math.floor(-delta + 0.5) end if obj then -- cgit v1.2.3