Fix flicker when scrolling advanced inventory.

To observe this flicker, open advanced inventory (`/`), examine an item, and scroll up/down quickly.