Appium blocks screen while using long press

I have a message that I should long press on it.
When the code for the long press is starting to performed, appium basically blocks the screeen in a way that I cannot even manually press on that message. After a few seconds appium releases the screen so I can manually tap anywhere (without performing the long press).

Use TouchActions function in your code… may be after this it will work fine

TouchAction functions is what I used…

TouchAction	tAction=new	TouchAction(driver);
	tAction.longPress(driver.findElement(By.name("0"))).perform();

Use wait before and after this function