added new test case & fixed IE8 event issue

* `event.preventDefault()` does not work on IE8, added the correct method of
stopping events in IE8