次に、ボールを打ち返すバーがタッチ操作に従って動くようにします。画面内での指の動きは、touchMoveイベントで検知します。 画面の背景であるBgにtouchMoveイベントを登録するため、ja.imageUnitObj["Bg"].addEventListener("touchUp", this); の後に、以下を追加します。
ImageManipulation is a simple Javascript library (without dependencies) that can be used to manipulate images in certain ways by replacing them with canvas elements and manipulating their direct ...