debiki / utterscroll

Enables dragscroll on your website. Automatically detects when you want to select text, not scroll.
34 stars 8 forks source link

How to disable Utterscroll? #1

Closed GirlBossRush closed 11 years ago

GirlBossRush commented 11 years ago

The plugin works great but I am unable to disable it. I'm using Backbone.js so there aren't any page refreshes. Is it possible to include a disable method or have the enable method accept a boolean variable?

Thank you.

kajmagnus79 commented 11 years ago

Hi Eric!

Ooops, I misread your comment. Sorry about that (in case GitHub sent you the original and somewhat confused version of my reply).

Here's my edited reply:

Yes I could have a look into adding a disable() method, or enable(false). Simply calling enable() could re-enable it an remember initial config params.

Best regards, KajMagnus

kajmagnus79 commented 11 years ago

Hi again. I just pushed a commit with disable() and enable() functions.

Calling enable() with no {options} enables the plugin with the config params last specified when calling enable(). (Or {} if it's the first time.)

(This should work fine I hope?)

debiki commented 11 years ago

Hi! I'm closing this issue now,

Best regads, KajMagnus