This is a migrated thread and some comments may be shown as answers.

Tap Event

1 Answer 25 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tal
Top achievements
Rank 1
Tal asked on 14 Feb 2013, 11:47 PM
Hi, I am navigating between screens using tap events, I'm running into an issue where multiple views are loaded one after the other as though the tap even is being carried over from view to view. Is there anyway to clear out the tap event when view is loaded and then reinitiate it?
Here is my code:
<script>
            function initTouch(e) {
                $(".touch-surface").kendoTouch({
                    tap: function(e) {
                        window.location.assign(this.element.prop("id") + ".html");
                    }
                });
            }
        </script> 



1 Answer, 1 is accepted

Sort by
0
Kristian D. Dimitrov
Telerik team
answered on 19 Feb 2013, 03:42 PM
Hello Tal,

 I was able to reproduce your issue only on iPhone5 with iOS 6.0.1. In order to avoid this behavior just modify your code like so:

function initTouch(e) {
        $(".touch-surface").on("touchstart",false);
        $(".touch-surface").kendoTouch({
              tap: function(e) {
                     window.location.assign(this.element.prop("id") + ".html");
               }
        });
}

This fix, however might affect other events you use from (".touch-surface") elements.

We have also reported this issue to the Kendo team and they will further investigate it.

Greetings,
Kristian D. Dimitrov
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
Tags
General Discussion
Asked by
Tal
Top achievements
Rank 1
Answers by
Kristian D. Dimitrov
Telerik team
Share this question
or