Forum Archive

Disable webview

donnieh

How do you disable a webview so it doesn't respond to touches?

(A webview object, not the webview pop up sheet)

omz

You could simply add a transparent view to it that blocks any touches:

# webview = ...
shield_view = ui.View(frame=webview.bounds, flex='WH')
webview.add_subview(shield_view)
donnieh

Thank you! I understand.