There is a simple mweb webview:

<WebView android:id="@+id/html" android:layout_width="match_parent" android:layout_height="wrap_content"> </WebView> 

To which I pass to the html:

 mWeb.loadData(myhtml, "text/html; charset=utf-8", "UTF-8"); 

Everything is working fine, but when you scroll, you will not accidentally make a swipe to the left or wire, the text starts moving down. So it seems and nothing, but there is also a problem, the text does not appear in the same place after the svayp. How can I fix the display of the content in the WebView so that it does not spill over the sides?

    1 answer 1

    You need to specify the action on the swipe:

      findViewById(R.id.html).setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View view, MotionEvent event) { if(event.getAction() == MotionEvent.ACTION_MOVE) return false; } });