Javascript mousedown and mouseup on different elements

aroyaseAideddy2

New Member
I am trying to develop a word search game in JS which looks like this : https://jquery-wordsearch-game.googlecode.com/svn/trunk/demo.htmlBTW I am not using that guy's plugin and instead, trying to develop on my own. I am using the following code to fire a handler to highlight the cells when a user clicks and moves over them.\[code\]$('#puzzlecontainer').on('mousedown','.block',myHandler);\[/code\]The problem is that the mousedown event is fired on the first cell only. I want handlers to fire on all cells in the path of the mouse.Also how can I make this compatible with touch events ? I tried touchmove and touchdown.Please help
 
Back
Top