workaround for wrong event order on certain touch screens; removed lots of unnecessary terms in the equations of surfaces in the gallery with record surfaces