Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Swipe left/right not working since upgrade to XDK build 2548

Forrest_W_1
Beginner
724 Views

Help!

I have an app called FoodieSpotz that has both left-side and right-side (aside) menus using Intel App Framework.

Prior to the upgrade to XDK build 2548, when testing using Local Apps (wi-fi) or using Server Apps through App Preview, the left/right swipe worked.

It is no longer working.  It works in the emulator, but not on the device.  

Anchor buttons to open up the left/right menus still work, but swiping to open up the left or right menus from the main panel no longer works.

Please advise.

Thanks,

Forrest Ward

0 Kudos
2 Replies
Elroy_A_Intel
Employee
724 Views

What type of device are you testing on? What version of App Framework are you using?

0 Kudos
Forrest_W_1
Beginner
724 Views

Elroy,


I have tried testing FoodieSpotz app on both a Galaxy S2 and a new Samsung Note 5 - swipe left/right does not work on either device.

My script tag in my application for AppFramework is:
           
        <script type="text/javascript" charset="utf-8" src="js/appframework.ui.min.js"></script>

Inside the AppFramework JavaScript file is:

/*! intel-appframework - v2.1.0 - 2014-11-06 */

This problem (swipe left / swipe right) to access the leftsideMenu and rightsideMenu on the FoodieSpotz app did not start until the XDK upgrade but could have started with the App Preview app upgrade.

Either way, what once worked flawlessly does not work now.

Please advise what needs to be done to fix this.

The code I'm using for left and right menu(s) and follows:

LEFT MENU:

            <!-- default sidemenu -->
            <nav id="default_sidemenu" title="Options">
                <ul class="list">
                   
                 <li class="divider">Main Menu</li>
                    <li><a href="#main" data-transition="none" onclick="loadedPanel();$.ui.toggleLeftSideMenu();">Home</a></li>
                    <li><a href="#javascript:;" data-transition="none" onclick="loadGSFavorites();">My Favorites</a></li>
                    <li><a href="#my_rewards" data-transition="none">My Rewards</a></li>
                    <li><a href="#my_messages" data-transition="none">My Messages</a></li>
                    <li><a href="#my_emails" data-transition="none">My Emails</a></li>
                    <li><a href="#corporate_fabrics" data-transition="none">Corporate Brands</a></li>
                
                 <li class="divider">Settings</li>
                    <li><a href="#my_location" data-transition="none" onclick="resetMap();$.ui.slideSideMenu=false;">My Location</a></li>
                    <li><a href="#javascript:;" data-transition="none" onclick="showProfile();$.ui.slideSideMenu=false;">My Profile</a></li>

                 <li class="divider">Utilities</li>
                    <li><a href="index.html" data-ignore="true">Restart App</a></li>

                </ul>
            </nav>

RIGHT (aside) MENU:
           
            <!-- aside menu -->
                <aside>
                    <header class="header">
                        <h1>Fabrics</h1>
                        <a onclick='af.ui.toggleRightSideMenu()' class="button icon pin"></a>
                    </header>
                    <ul id="asidemenu" class="list">
                        <li class="divider">Food & Drink</li>
                        <!-- APPEND fabric network listing here -->
                    </ul>
                </aside>           
    
The code above still works in the EMULATOR ... but does not work in App Preview on my Android device(s).

Please note - the AppFramework Documentation no longer supports "aside" for the rightMenu.

0 Kudos
Reply