Permalink
Browse files

Merge pull request #579 from marckrenn/flow-mouseWheelEnabled

Add mouseWheel support to FlowComponent
  • Loading branch information...
nvh committed Jun 20, 2018
2 parents 638d6da + c1d2514 commit 76e96eb878b22ba6a4b7172ba0219be3df1ffda3
Showing with 6 additions and 0 deletions.
  1. +6 −0 framer/Components/FlowComponent.coffee
@@ -87,6 +87,11 @@ class exports.FlowComponent extends Layer
@define "scroll",
get: -> return @current?._flowScroll
@define "mouseWheelEnabled",
default: false
get: -> return @_mouseWheelEnabled
set: (value) -> @_mouseWheelEnabled = value
##############################################################
# Header and footer
@@ -265,6 +270,7 @@ class exports.FlowComponent extends Layer
inset.bottom = @footer?.height or 0 if scroll.maxY is @height
scroll.contentInset = inset
flowLayer._flowScroll = scroll
scroll.mouseWheelEnabled = @_mouseWheelEnabled
# Set the background color for he created scroll component
if layer instanceof ScrollComponent

0 comments on commit 76e96eb

Please sign in to comment.