You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Staci Cooper (JIRA)" <ji...@apache.org> on 2014/07/29 17:39:39 UTC
[jira] [Commented] (CB-7218) WP8 throws error for vibration > 5
secs
[ https://issues.apache.org/jira/browse/CB-7218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14077841#comment-14077841 ]
Staci Cooper commented on CB-7218:
----------------------------------
I have a commit up here: https://github.com/stacic/cordova-plugin-vibration/commit/6899790d10a951a858dd1bb2df0df20d0e010d26
Waiting on confirmation from w3c that this is how it should be handled on wp to make the PR.
> WP8 throws error for vibration > 5 secs
> ---------------------------------------
>
> Key: CB-7218
> URL: https://issues.apache.org/jira/browse/CB-7218
> Project: Apache Cordova
> Issue Type: Sub-task
> Components: Plugin Vibration, WP8
> Reporter: Staci Cooper
> Assignee: Staci Cooper
> Priority: Minor
>
> This is the expected behavior on WP8. An error is thrown if a timespan less than 1 msec or greater than 5000 is passed in: http://msdn.microsoft.com/en-us/library/microsoft.devices.vibratecontroller.start.aspx
> Currently Vibration.cs sets the timespan to 1 msec if it is given as < 1msec. I think if it is given as > 5000, it should be similarly capped so that the vibration will be truncated to 5 seconds instead of not occurring at all.
--
This message was sent by Atlassian JIRA
(v6.2#6252)