Use a timer instead of post-command-hook. (hscroll-timer): New variable.
Attach a file by drag & drop or click to upload