Forum Discussion
touch screen interface on 360 content.
Hello everyone,
We have created a some of the new 360 image content with clickable nodes to fire open images and titles of items around the 360 photo's. We found out after we started developing that the client is using touch screens. When launching the content on the touch screens, the clickable nodes do not seem to function by touching them on the screen, only by clicking with a mouse, or the pad.
Trying to search for help on touch screen capabilities is not turning anything up specific to the new 360 content. Just trying to see if this functionality is left out of those specific nodes, or did i miss a step.
Any help or links would be appreciated.
- LucianaPiazza-6Community Member
Hello Ryan,
Great question! If you are able to share, what devices are your clients using? I'm wondering if your Storyline 360 app needs to be updated to the most recent version in order to have the 360 image content display correctly on those devices.
Perhaps you can reach out to the Articulate support team here and they can assist with your specific situation.
Thanks,
Luciana
- RyanZwickerCommunity Member
Hi Luciana, sorry for the late reply but we had to reach out to our customer to get the specs on the touch screens.
The in classroom ones are iiyama ProLite T2252MSC-B1 LED monitor 22" touchscreen
and the take home laptops are Microsoft Surface Book 3
Will reach out to the Articulate support team like you suggested to see if there is anything we can do.
- MathNotermans-9Community Member
The Touch event is default not used in Storyline. However you can add it with Javascript as a custom event and trigger whats needed.
- RyanZwickerCommunity Member
Hi Math,
Thank you for the reply, it is greatly appreciated. I'm in no way a java script person, do you have any hints on where to find the code, or at least where a person can start looking to implement this in a program. I've starting looking it up online, unfortunately not having much luck for this particular requirement.
Thanks again.
- Wilmarivande865Community Member
Hi, we are struggling with the same issue. Did you find a solution for touch screens yet?
What type of JavaScript did you apply? - MathNotermans-9Community Member
https://developer.mozilla.org/en-US/docs/Web/API/Touch_events
https://www.w3schools.com/jsref/obj_touchevent.aspChecking for an actual Storyline sample now.
Basically this is the workflow.
Add this in a Slide Trigger that gets executes on timeline start.
/*
As Storyline doesnot support all mouseEvents default we are adding that here
*/
var wrapper = document.querySelector("#wrapper");
//var rotateButton = document.querySelector("[data-acc-text='rotateButton']");
if (wrapper.addEventListener)
{
// IE9, Chrome, Safari, Opera
wrapper.addEventListener("mousedown", MouseDownHandler, false);
wrapper.addEventListener("mouseup", MouseUpHandler, false);
// Firefox
wrapper.addEventListener("DOMMouseDown", MouseDownHandler, false);
wrapper.addEventListener("DOMMouseUp", MouseUpHandler, false);
}
// IE 6/7/8
else
{
wrapper.attachEvent("onmousedown", MouseDownHandler);
wrapper.attachEvent("onmouseup", MouseUpHandler);
}
Now your complete Storyline will act on touch.
Use the handlers to act upon the touches.
function TouchStartHandler(event) {
var touches = event.changedTouches;
}
function TouchEndHandler(event) {
var touches = event.changedTouches;
}Do check this article to learn more about the results you can get from the touchevents. Remember...touching can be done with multiple fingers, so you get more info then with a mouseclick.
https://jenkov.com/tutorials/responsive-mobile-friendly-web-design/touch-events-in-javascript.html
- Wilmarivande865Community Member
Thank you for this Math.
Our files were too intricate and big for this solution with over 20 interactive environments, though, and we could not get it functioning fluently in time.
I don't know exactly where our solution came from because we had a team working on this, but we got the touch screen interaction with the 360° view and triggers to work through a work-around solution in Firefox.- We published our docs for the web so that we could run them offline. (There was not very good internet connectivity where we showcased our project, and it is over 1GB)
- Open the story.html file with Firefox web browser on the touch screen PC.
- Once it is open, activate the responsive design mode. (Ctrl + Shift + M).
https://firefox-source-docs.mozilla.org/devtools-user/responsive_design_mode/ - Play around with the settings. One of the iPad settings worked for us.
- Remember to enable touch mode as well.
I hope this solution helps someone else in future as well.
Hi Wilmari,
Thanks so much for sharing the solution that worked for you! I'm sure other community members who encountered the same issue will find this helpful.
Enjoy the rest of your day, and happy developing! 🙂
- WesleyAdamsCommunity Member
I've was also successful in Chrome. I hope this can be done natively though as you need to setup the inputs every time you restart the browser or computer. Looks like maybe they are still working on this? I found a message here:
Here's my steps but it may be overkill/could be simplified:
- Find your story.html file and RMB click to open it up in Chrome.
- When open, set it to full screen mode by pressing F11.
- Open up Dev Tools in Chrome by pressing F12.
- Find the little mobile icon and make sure to click it til it toggles a light blue color as seen here to turn Mobile mode on:
- Change your Dimensions size to the size of your monitor. 1920X1080 worked for me.
- Change the Zoom percentage to 100%.
- Now select your Device Type with the 3 dots menu at top right and make sure Mobile shows up at the top:
- You should now be able to close the Dev Tool by pressing F12 again so it's out of the way.
- Hit the play button and test out the course.
- If you still cannot select the screen via touch, try reloading the course by pressing Ctrl + R and try checking the steps again starting at step 3.
- MathNotermans-9Community Member
Articulate should really stepup and ensure touchevents work on every device.
- WesleyAdamsCommunity Member
I agree. I can say that maybe some devices work different from others. I am not too familiar with how certain devices accept touch inputs. Like is there a standard for Windows and Mac machines? Android and Apple phones? Touch Monitors? iPads? And everything in between. I'm not sure there is a standard.
What gave us a "gotcha" moment in testing were the 360 image experiences on my phone that resulted with no issues in touch inputs. So we thought we were ok.
However, the touch monitor our client received later did not work when they tested the experience on it. So, now we're scrambling to get it to work on their display. The above notes did help but sometimes it would work and sometimes not. For me, Chrome was the best option most re-creatable.
I had a similar issues on my Cinque drawing monitor so that's how I learned how to troubleshot a solution. But I can install drivers for that but not all monitors use drivers to accept these inputs. Some my use whatever is provided in Windows OS I'm guessing but don't quote me on that.