<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic A Little Help Please? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869456#M12637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all who replied.&amp;nbsp; I really do appreciate you!&amp;nbsp; Sorry for the code that didn't work very well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've rewritten my code that detects touch and mouse.&amp;nbsp; This time I'm not going to post until I've tested on the one device I can get my hands on: a Microsoft Surface tablet.&amp;nbsp; Look for A Little Help Please? [Part Deux] tomorrow if my Surface test goes well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I've noticed more and more devices that have both touch screens and a mouse.&amp;nbsp; My research tells me this is either impossible or very difficult to detect.&amp;nbsp; I always love a challenge, so I wrote some code that I think will detect this.&amp;nbsp; I am using Dojo has('touch') to detect if the device has a touch screen.&amp;nbsp; This works on all of the devices I've tested.&amp;nbsp; The code to detect a mouse on a touch device is the tricky part, and I don't have access to any devices to test this on.&amp;nbsp; Here's how you can help if you have such a device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I have a customized WAB Application.&amp;nbsp; In the lower left corner, above the scalebar, I am showing what devices I have detected:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="87790" alt="Debug.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/87790_Debug.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;1. Go to this link: &lt;A href="http://gis.hamiltoncounty.in.gov/mapviewer1.1-DEV-TEST-MOUSE/index.html"&gt;MapViewer1.1-DEV-TEST-MOUSE&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;2. DO NOT USE YOUR MOUSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;3. Open some widgets, zoom, pan, tap a parcel, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;4. Verify that the debug reads as above: hasMouse: false (or undefined), hasTouch: true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;5. NOW USE YOUR MOUSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;6. Verify that the debug reads: hasMouse: true, hasTouch: true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;7. If the app doesn't detect the mouse or if there are any problems, let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;8. It would be cool to know the operating system and version (e.g. iOS 8.2, Android 4.1, Windows 8, etc.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;If the testing goes well, I plan to share the code for this with the community, but feel free to scrape it.&amp;nbsp; Acme/Widget/js, lines 207-237&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 21:20:39 GMT</pubDate>
    <dc:creator>LarryStout</dc:creator>
    <dc:date>2015-04-21T21:20:39Z</dc:date>
    <item>
      <title>A Little Help Please?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869456#M12637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all who replied.&amp;nbsp; I really do appreciate you!&amp;nbsp; Sorry for the code that didn't work very well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've rewritten my code that detects touch and mouse.&amp;nbsp; This time I'm not going to post until I've tested on the one device I can get my hands on: a Microsoft Surface tablet.&amp;nbsp; Look for A Little Help Please? [Part Deux] tomorrow if my Surface test goes well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I've noticed more and more devices that have both touch screens and a mouse.&amp;nbsp; My research tells me this is either impossible or very difficult to detect.&amp;nbsp; I always love a challenge, so I wrote some code that I think will detect this.&amp;nbsp; I am using Dojo has('touch') to detect if the device has a touch screen.&amp;nbsp; This works on all of the devices I've tested.&amp;nbsp; The code to detect a mouse on a touch device is the tricky part, and I don't have access to any devices to test this on.&amp;nbsp; Here's how you can help if you have such a device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I have a customized WAB Application.&amp;nbsp; In the lower left corner, above the scalebar, I am showing what devices I have detected:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="87790" alt="Debug.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/87790_Debug.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;1. Go to this link: &lt;A href="http://gis.hamiltoncounty.in.gov/mapviewer1.1-DEV-TEST-MOUSE/index.html"&gt;MapViewer1.1-DEV-TEST-MOUSE&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;2. DO NOT USE YOUR MOUSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;3. Open some widgets, zoom, pan, tap a parcel, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;4. Verify that the debug reads as above: hasMouse: false (or undefined), hasTouch: true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;5. NOW USE YOUR MOUSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;6. Verify that the debug reads: hasMouse: true, hasTouch: true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;7. If the app doesn't detect the mouse or if there are any problems, let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;8. It would be cool to know the operating system and version (e.g. iOS 8.2, Android 4.1, Windows 8, etc.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;If the testing goes well, I plan to share the code for this with the community, but feel free to scrape it.&amp;nbsp; Acme/Widget/js, lines 207-237&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 21:20:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869456#M12637</guid>
      <dc:creator>LarryStout</dc:creator>
      <dc:date>2015-04-21T21:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Help Please?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869457#M12638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;​Hi Larry,&lt;/P&gt;&lt;P&gt;testing on ipad with ios 8.3 (last weeks update).&amp;nbsp;&amp;nbsp; First time trying to load, never got past the "loading..." Icon, but a refresh did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on initial load (both incomplete and refresh) the&amp;nbsp;&amp;nbsp;&amp;nbsp; hasMouse showed "undefined" until I touched on the screen and it changed to false.&amp;nbsp; I'm assuming that is expected behavior.&amp;nbsp; hasTouch was true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have a mouse, but tested my JOT Script pen, just to see, but it sees it as touch too, not mouse (which makes sense).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a simple test result, for what it's worth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 23:41:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869457#M12638</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-04-21T23:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Help Please?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869458#M12639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if my device qualifies. It's a laptop with a touch screen and track pad. Although I only used the touch screen it continuously showed touch = false. Obviously the same occurred when I used the track pad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 03:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869458#M12639</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-04-22T03:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Help Please?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869459#M12640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rebecca.&amp;nbsp; Every little bit helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 14:11:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869459#M12640</guid>
      <dc:creator>LarryStout</dc:creator>
      <dc:date>2015-04-22T14:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Help Please?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869460#M12641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Larry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Platform: HP Elite Tab - Windows 8.1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Browser: IE 11.0.9600.17690 &amp;amp; Tested in Windows Metro as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tested using touch first:&lt;/P&gt;&lt;P&gt;&amp;nbsp; HasTouch: True&lt;/P&gt;&lt;P&gt;&amp;nbsp; HasMouse: false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bluetooth mouse connected as well and it still says HasMouse: false.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 14:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869460#M12641</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-04-22T14:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Help Please?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869461#M12642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sephe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your device absolutely qualifies.&amp;nbsp; Sounds like I have some work to do with touch screen laptops.&amp;nbsp; Are you using Windows or a Mac?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:11:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869461#M12642</guid>
      <dc:creator>LarryStout</dc:creator>
      <dc:date>2015-04-22T15:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Help Please?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869462#M12643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Windows 8. I should have mentioned that it said mouse = true the whole time, even while using the touch screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:14:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869462#M12643</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-04-22T15:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Help Please?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869463#M12644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's listening for a mousemove event over the browser window, so it won't change to hasMouse: true until it detects that event.&amp;nbsp; Did you try moving the mouse over the map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:55:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869463#M12644</guid>
      <dc:creator>LarryStout</dc:creator>
      <dc:date>2015-04-22T15:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Help Please?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869464#M12645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Larry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yep used my mouse to zoom and to interact with widgets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:57:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/a-little-help-please/m-p/869464#M12645</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-04-22T15:57:13Z</dc:date>
    </item>
  </channel>
</rss>

