Check scrollX, scrollY value type