You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.
$(this.canvas)
.hover(function(e){
if(!$this.enabled) return true;
e.preventDefault();
e.stopPropagation();
//reset canvas offset in case it has moved
$this.canvas_offset = $($this.canvas).offset();
$this.scratch = true;
$this.scratchFunc(e, $this, 'Down');
})
Sorry for my short comment before with no code to help - I still dont have time to provide a full pull request with a configuration param - but I can provide you a link to my working version that replaces the mousedown and mouseup with mouseenter and mouseout to provide the scratch with no clicking.
A full working live example of this is now on the home page of https://myJoomla.com
Again sorry this is a comment and not a pull request, I would normally but in full daddy mode during summer holidays, and lack of time to code at nights.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Would be great to have an easy option (true/false) for having a click event for the scratch, versus hover to erase.
The text was updated successfully, but these errors were encountered: