Fix clicks in a frame not taking into account additional offset due to padding -- fixes #377