/*!
* © by Sitsanlis Ilias
* This notice shall be included in all copies or substantial portions of the Software.
* Creative Commons 4.0/CC BY - NC - SA 4.0. 
*/

function mouseDownGen(e){var t=canvas.width,s=canvas.height;e.target.offset={x:e.target.x-e.stageX*(720/t),y:e.target.y-e.stageY*(405/s)},e.target.addEventListener("pressmove",pressMoveGen)}function pressMoveGen(e){var t=canvas.width,s=canvas.height,t=e.stageX*(720/t)+e.target.offset.x,s=e.stageY*(405/s)+e.target.offset.y;e.target.x=t,e.target.y=s,positions()}function pressUpGen(e){e.target.removeEventListener("pressmove",pressMoveGen)}