Skip to content
Permalink
Browse files

Add debounce to size calculation

  • Loading branch information...
Floris Verloop
Floris Verloop committed Aug 2, 2016
1 parent 4b6d92a commit 297edeae47316d4474cc86c8b9f3893e7fc8298b
Showing with 5 additions and 1 deletion.
  1. +5 −1 framer/Components/ShareComponent.coffee
@@ -499,7 +499,11 @@ class ShareComponent
else
@_openSheet()

_calculateAvailableSpace: =>
_calculateAvailableSpace: _.debounce ->
@__calculateAvailableSpace()
, 100, {maxWait: 100}

__calculateAvailableSpace: =>
device = Framer.Device
@threshold = @options.minAvailableSpaceFullScreen
@availableSpace = Canvas.width

0 comments on commit 297edea

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