scroll bar tweak

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

Mon Nov 19, 2018 1:47 pm

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: 10974
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Mon Nov 19, 2018 2:55 pm

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 55 times
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: 649
Joined: Thu Oct 02, 2008 11:52 am

Mon Nov 19, 2018 4:05 pm

Hi Martin,

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

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

Mon Dec 03, 2018 1:33 pm

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: 10974
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Mon Dec 03, 2018 3:27 pm

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
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: 649
Joined: Thu Oct 02, 2008 11:52 am

Tue Dec 04, 2018 10: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