lib/fusuma/plugin/detectors/swipe_detector.rb in fusuma-3.0.0 vs lib/fusuma/plugin/detectors/swipe_detector.rb in fusuma-3.1.0
- old
+ new
@@ -165,10 +165,10 @@
def to_f
calc.to_f
end
def calc
- @x > @y ? @x.abs : @y.abs
+ (@x > @y) ? @x.abs : @y.abs
end
end
end
end
end