websanova / wPaint

jQuery Paint Plugin
http://wpaint.websanova.com
351 stars 128 forks source link

Callback in not working #128

Open JjayAr opened 4 years ago

JjayAr commented 4 years ago

Hello guys, i am trying the callback in the documentation but its not working.

$("#wPaint").wPaint({ onDrawDown: function (e) { console.log(this.settings.mode + ": " + e.pageX + ',' + e.pageY); }, onDrawMove: function (e) { console.log(this.settings.mode + ": " + e.pageX + ',' + e.pageY); }, onDrawUp: function (e) { console.log(this.settings.mode + ": " + e.pageX + ',' + e.pageY); } });