Click scrollbar will cause recapture mouse twice error, add check sentence before capture and release mouse in HandleMouse()