add cancelStroke and test for computer