Scroll on android using TouchAction in webdriverio

On my test i need to scroll to an element and tried to achieve it using touchAction in webdriverio with following code
browser.touchAction([
{action:‘press’,x:1052,y:1567},
{ action: ‘moveTo’,x:1041, y:689},
‘release’
])
It actually press on the specified element but actually doesn’t scroll.

I’m having the same difficulties with the scroll. So far I have tried the following to simulate a scroll and none have worked:

  • driver.touchPerform()
  • element.scrollIntoView()
  • driver.performActions()
  • browser.touchAction()
  • driver.touchScroll()

I have the pointer and touches on my Android emulator enabled so I can see the mouse is moving and clicking the screen, but no scrolling is happening. Any help would be appreciated.