kefirjs / kefir

A Reactive Programming library for JavaScript
https://kefirjs.github.io/kefir/
MIT License
1.87k stars 97 forks source link

Filter mouse clicks: get right #157

Closed philosophocat closed 8 years ago

philosophocat commented 8 years ago

How can i get the stream of right clicks? This way does not work:

var click = Kefir.fromEvents(document.body, 'click'); click.filter(e => e.which == 3).log();

rpominov commented 8 years ago

This seems more like a question about browser API rather than Kefir. Closing.