I can't tap by offset in Android Web App

I’ve tried using Touch Actions to do .tap(element,xOff, yOff) but I kept getting a “An unknown server-side error occurred while processing the command.” error. The Appium logs didn’t show anything more specific. Instead of using this approach I tried to do the following:

public void touchFunction(AppiumDriver driver,WebElement el,int x, int y) throws InterruptedException{
	
	String originalContext = driver.getContext();

	int xEl = el.getLocation().getX();
	int yEl = el.getLocation().getY();
	
	driver.context("NATIVE_APP");
	
	TouchAction touchAction = new TouchAction(driver)
		.tap(xEl+x,yEl+y)
		.release();
	touchAction.perform();
	driver.context(originalContext);

}

The problem I have is it looks like the coordinates I get in the web view are different from the ones in the NATIVE_APP. Does anyone have a workaround for this problem?