I am using css columns to display content in an android web browser. I used longclicklistner {return true}; with this, I was able to disable longclick in phones, but it doesnβt work in tabs (e.g. galaxy 2 tab). I also prevent a touchmove event using jquery, but css columns move when swipe events occur as part of a longclick. Any help is appreciated. Thanks.
wbView.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { return true; } }); wbView.setLongClickable(false);
Jquery code:
document.getElementById("divIdToShowContent").ontouchmove = function(e){ e.preventDefault(); var touching = null;
}
source share