Restore some of the touch shape functionality needed to calculate query positions accurately.