Possibly fix delay/lag issue

Do handle all events, not just one event per painted frame!
This should fix #50
Please double-check.