×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Icon Location in Map and Slide Menu

Icon Location in Map and Slide Menu 8 years 7 months ago #33783

  • Tim Serr
  • Tim Serr's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Hi Daniel. Fantastic component! You've certainly put a lot of work and effort into Hotspots!

My question relates to the following scenario:
  • When I select a location icon in the map, the associated map location details in the slide menu won't scroll to that location; it just stays in the same location

I know this is a template issue I'm experiencing because when I change my template to Protostar, it works fine. My question is what code is responsible for this behaviour? I'm hoping that I can adjust some of my code in my template to make this work correctly.

An example of what I'm talking about can be found here:

Part of the message is hidden for the guests. Please log in or register to see it.


Any assistance you can provide would be really appreciated.

Thanks.

Tim

Icon Location in Map and Slide Menu 8 years 7 months ago #33786

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Tim,
There is a javascript error in the console
TypeError: opts.beforeScroll is undefined

We have a scroll script and most probably since your template has a button to scroll to top has also some kind of scroll script. And the scroll script of the template is overriding our stuff. If you turn off this scroll script of yours the map should work.

Regards,
Daniel
The following user(s) said Thank You: Tim Serr

Icon Location in Map and Slide Menu 8 years 7 months ago #33788

  • Tim Serr
  • Tim Serr's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Okay, great. Thanks Daniel, I'll take a look at this and will follow up. Thanks for the quick response!

Tim

Icon Location in Map and Slide Menu 8 years 7 months ago #33789

  • Tim Serr
  • Tim Serr's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Okay, well I feel silly! Thanks so much Daniel, you've saved me a ton of work as your suggestion was key. I've disabled the scroll-to-top javascript in my template and now everything works as it should within Hotspots.

Thanks! Very much appreciated!

Tim
  • Page:
  • 1
Time to create page: 0.118 seconds