Prevent moving mouse out of canvas when doing selection
Update my own library