scroll bar tweak

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
stalwart
Posts: 651
Joined: Thu Oct 02, 2008 11:52 am

hi all,

Is there a way to remove the scroll bar and use arrows instead to move the thumbnail bar - to gain a little more viewing window.... from this:

Image

to something like this?

Image

Stu
User avatar
Hopki
Gnome
Posts: 13015
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Stu,
This is a V6 project using the action in. button:
Source: Mouse Click
Action: Position
Type: Scroll By
Offset: X:40px Y:0px
Target: thumbnail_menu
This scrolls it to the left,

Then:

Source: Mouse Click
Action: Position
Type: Scroll By
Offset: X:-40px Y:0px
Target: thumbnail_menu
To the right.
Regards,
Hopki
Attachments
stu.zip
(57.81 KiB) Downloaded 224 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
stalwart
Posts: 651
Joined: Thu Oct 02, 2008 11:52 am

Hi Martin,

Thanks! This works a treat, and exactly what I was looking for - thanks so much....

Stu
User avatar
stalwart
Posts: 651
Joined: Thu Oct 02, 2008 11:52 am

the amount the thumbs scroll seems, to me and the client, a little erratic:

www.360imagery.co.uk/virtualtour/educat ... de/02.html

In mobile mode, the thumbs seem to move forward / back MUCH more than the "scroll by" +/-30px I've set.

It skips ahead, in the above example on my iPhone 8+, by 12 thumbnails.....

I'm using the default settings in the skin you provided Martin - although I've decreased the X offset to 30 pixels, not 40.

Stu
User avatar
Hopki
Gnome
Posts: 13015
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Stu,
What you need to do is have the same action but use an action filter to limit how many to jump depending on screen width.
Example:
mouse click, scroll by, -40/0, thumbnail_menu => action filter: player width less than 2048, more than 1024.
mouse click, scroll by, -20/0, thumbnail_menu => action filter: player width less than 1024

Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
stalwart
Posts: 651
Joined: Thu Oct 02, 2008 11:52 am

Hi Martin,

Seems to work a treat. Not sure I understand tho’ your logic behind:

“mouse click, scroll by, -40/0, thumbnail_menu => action filter: player width less than 2048, more than 1024”

...why the “less than 2048”? Surely anything over the minimum 1024 you want the menu to jump more?

So, this seems to be about right:
mouse click, scroll by, -80/0, thumbnail_menu => action filter: player width > 1024
mouse click, scroll by, -10/0, thumbnail_menu => action filter: player width < 1024

www.360imagery.co.uk/virtualtour/educat ... de/02.html

Stu
Post Reply