Detect drop position on pinned tabs correctly (#585)

This is partial fix.