chaplinjs / chaplin

HTML5 application architecture using Backbone.js
http://chaplinjs.org
Other
2.85k stars 232 forks source link

scroll event not firing #843

Closed szelga closed 9 years ago

szelga commented 9 years ago
class MyView extends View
  . . .
  events:
    'scroll': 'doScroll'

  doScroll: ->
    console.log "scrolling..."
   . . .

doesn't show anything in the console. see https://github.com/szelga/brunch-with-chaplin for example. vanilla Backbone should work with this event (haven't tried myself but saw a number of examples).

szelga commented 9 years ago

my bad, i didn't see the difference between 'scroll' on window and 'scroll' on @el. turns out, i needed the former which can't be done via events dictionary.