Fix rounding when dragging events (Bug #11904).