X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fui%2Fbase%2Ftouch%2Ftouch_device_win.cc;h=18f2f120d67ed226730aab723a84b96eaa123e4c;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=ba5c2600b16407701a45ca7a33298e2387031c56;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/ui/base/touch/touch_device_win.cc b/src/ui/base/touch/touch_device_win.cc index ba5c260..18f2f12 100644 --- a/src/ui/base/touch/touch_device_win.cc +++ b/src/ui/base/touch/touch_device_win.cc @@ -15,6 +15,9 @@ bool IsTouchDevicePresent() { } int MaxTouchPoints() { + if (!IsTouchDevicePresent()) + return 0; + return GetSystemMetrics(SM_MAXIMUMTOUCHES); }