Skip to content
Permalink
Browse files

fix layer.scroll bug

  • Loading branch information...
koenbok committed Dec 12, 2014
1 parent 0d59690 commit 6cc6def363b14eb2b33e68472bae1fa762b4671c
Showing with 5 additions and 1 deletion.
  1. +1 −1 framer/Layer.coffee
  2. +4 −0 test/tests/LayerTest.coffee
@@ -122,7 +122,7 @@ class exports.Layer extends BaseClass

@define "scroll",
get: -> @scrollHorizontal is true or @scrollVertical is true
set: (value) -> @scrollHorizontal = @scrollVertical = true
set: (value) -> @scrollHorizontal = @scrollVertical = value

# Behaviour properties
@define "ignoreEvents", layerProperty @, "ignoreEvents", "pointerEvents", true, _.isBool
@@ -224,6 +224,10 @@ describe "Layer", ->

layer.ignoreEvents.should.equal false

layer.scroll = false
layer.scroll.should.equal false
layer.style["overflow"].should.equal "hidden"

it "should set scrollHorizontal", ->

layer = new Layer

0 comments on commit 6cc6def

Please sign in to comment.
You can’t perform that action at this time.