added Resize-event recognition and replaying. 

corrected offset-position of mouse-cursor.