1.1.0 • Published 8 years ago

@fczbkk/event-simulator v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

Event Simulator

Cross-browser simulator of regular and mouse events in JavaScript.

Documentation

simulateEvent

Fires an event of provided type on provided object

Parameters

  • target_object Object Any object that can fire an event
  • event_type string Event identifier

Examples

simulateEvent(window, 'scroll');

simulateMouseEvent

Fires a mouse event on provided object

Parameters

  • target_object Object
  • custom_properties [Object](default {})

Examples

simulateMouseEvent(window, {type: 'mousedown', button: 'right'});

Bug reports, feature requests and contact

If you found any bugs, if you have feature requests or any questions, please, either file an issue at GitHub or send me an e-mail at riki@fczbkk.com.

License

Event Simulator is published under the MIT license.

1.1.0

8 years ago

1.0.0

9 years ago