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

Mac OSX specific forum
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 782
Joined: Fri Dec 04, 2015 9:26 pm

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

Post 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
wombats
Enthusiast
Enthusiast
Posts: 717
Joined: Thu Dec 29, 2011 5:03 pm

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

Post 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
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 782
Joined: Fri Dec 04, 2015 9:26 pm

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

Post by skinkairewalker »

Wow Awesome !!!!

it works, thanks :D
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post by mk-soft »

Which OS version? The web does not bounce for me.

macOS Ventura 13.3
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 782
Joined: Fri Dec 04, 2015 9:26 pm

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

Post 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?
Post Reply