Scrolling doesn't work in android application while running from Mac machine

I am using my old suites created using Windows machine and now when I try to run it in iOS, it fails while scrolling. Is there any configuration in iOS which stop scrolling in android device?

I am using javascript executor to scroll.

@mashkurm, Can you describe the problem in more detail?

You say you created some suites on Windows and now you are running it on iOS. Do you mean on a Macintosh?

It sounds like when you call the javascript executor to scroll on your Android device, it continues to scroll. Are you scrolling to find something, or just swiping forward through your list?

@willosser - Sure.

I am running my suites in Android device through Macintosh machine.

I am swiping till the text is displayed.

Here is the code -

    public static void scrollDown(WebElement scroll, String text)
    {
    JavascriptExecutor js = (JavascriptExecutor) driver;
                HashMap<String, String> scrollObject = new HashMap<String, String>();
                scrollObject.put("direction", "down");
                scrollObject.put("text", text);
                js.executeScript("mobile: scroll", scrollObject);
                scrollObject.put("element", ((RemoteWebElement) scroll).getId());
    }

And how is it failing?

It doesn’t fail programmatically, but also does nothing. No scrolling happens.