Page 1 of 1

how to deactivate the effect in the window that when rolling the mouse scroll the gadgets are pulled down?

Posted: Wed May 10, 2023 12:15 am
by skinkairewalker
Hello everyone, I have a problem when scrolling the mouse, the gadgets (webview in question) are being pulled down instead of scrolling the content of the page loaded in the webview ...
does anyone know how i solve this?
https://youtu.be/46lbMzjjbqY

Re: how to deactivate the effect in the window that when rolling the mouse scroll the gadgets are pulled down?

Posted: Thu May 11, 2023 1:16 am
by wombats
I'm not sure how well this solves your issue - it still seems to bounce sometimes:

Code: Select all

If OpenWindow(0, 0, 0, 640, 480, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  
  WebGadget(0, 10, 10, 620, 460, "https://www.google.com")
  
  Define scrollView = CocoaMessage(0, GadgetID(0), "enclosingScrollView")
  CocoaMessage(@test, scrollView, "setVerticalScrollElasticity:", #NSScrollElasticityNone)

  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
  
EndIf

Re: how to deactivate the effect in the window that when rolling the mouse scroll the gadgets are pulled down?

Posted: Thu May 11, 2023 5:04 am
by skinkairewalker
Wow Awesome !!!!

it works, thanks :D

Re: how to deactivate the effect in the window that when rolling the mouse scroll the gadgets are pulled down?

Posted: Thu May 11, 2023 9:38 am
by mk-soft
Which OS version? The web does not bounce for me.

macOS Ventura 13.3

Re: how to deactivate the effect in the window that when rolling the mouse scroll the gadgets are pulled down?

Posted: Sat May 13, 2023 5:46 am
by skinkairewalker
mk-soft wrote: Thu May 11, 2023 9:38 am Which OS version? The web does not bounce for me.

macOS Ventura 13.3
Hi, thanks by u answer, sorry for the delay to answer
i am using same version ...
could it be the pb version?