ghostwriter icon indicating copy to clipboard operation
ghostwriter copied to clipboard

"loop:true;" causes document to jump to top on restart

Open simplenotezy opened this issue 12 years ago • 1 comments

Loop:true will cause the document to jump to top, which makes it unuseable on a one-pager website.

Could be cool, if you could look into it when you have the time free from Twitter and Typeahead.js! :+1:

simplenotezy avatar Jan 02 '14 23:01 simplenotezy

Caused by the event trigger:

!silent && this.$input.trigger("ghostwriter:" + eventType).focus();

If you not need the element focused, you can solve the issue with this line

!silent && this.$input.trigger("ghostwriter:" + eventType);

cosmopolit avatar Feb 05 '15 18:02 cosmopolit