Bug 25809 - Scrolling view causes timer to stop incrementing
Summary: Scrolling view causes timer to stop incrementing
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-07 23:29 UTC by Cody Beyer (MSFT)
Modified: 2015-01-30 18:11 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Cody Beyer (MSFT) 2015-01-07 23:29:03 UTC
#### Description 

When using a srollview and timer, the act of scrolling causes the timer to stop, only the resume once scroll is complete

### Test Case

https://www.dropbox.com/s/7m5mmmz4csusmp7/TestProjectForTimerWhenScrollingIssue.zip?dl=0

### Steps

1. run the project on the iOS simulator or device

2. watch the counter count

3. hold your finger / mouse down as your scroll

4. while you are scrolling the coutner will not count


### Expected Results

Time will continue to run while scrolling, or update to the correct time after scrolling stops

### Actual Results

Timer stops and continues where it left off when scrolling is completed

### Extra Info

More details may be in http://stackoverflow.com/questions/6684016/why-timer-stops-when-scrolling-in-uiwebview-iphone

### Version

=== Xamarin Studio ===

Version 5.7 (build 660)
Installation UUID: 3e4348fa-e0b3-46a4-8426-58f27e19159e
Runtime:
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: 8.6.0.41 (Business Edition)
Hash: 2c57f4e
Branch: 
Build date: 2014-12-18 16:42:49-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/codybeyer/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

=== Xamarin.Mac ===

Version: 1.10.0.18 (Business Edition)

=== Build Information ===

Release ID: 507000660
Git revision: 6a74f9bdb90d9415b597064d815c9be38b401fee
Build date: 2014-12-18 00:38:00-05
Xamarin addins: 57be0f5e1433cb58b70ea9b52e9dc77ad791be40

=== Operating System ===

Mac OS X 10.10.1
Darwin Codys-MacBook-Pro.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 1 Rajneesh Kumar 2015-01-08 02:29:36 UTC
I have tried to reproduce this issue with the test case provided in bug description and able to reproduce this issue. When user scrolling on device/simulator timer gets stop, only  resume once scroll is complete. 

Hence marking this as Confirmed.

Supplement info:
Screencast: http://www.screencast.com/t/SJvtTHtS
ide logs: https://gist.github.com/Mohit-Kheterpal/174d8c90f3ce5aa78c89
Build output:https://gist.github.com/Mohit-Kheterpal/db98848b41ba233ea6c9
Application output: https://gist.github.com/Mohit-Kheterpal/6ad9eb096e6a55467028
iOS device log: https://gist.github.com/Mohit-Kheterpal/0b48a315ec0ea15edc4b

Environment info:
=== Xamarin Studio ===

Version 5.7 (build 661)
Installation UUID: 3dbf10c4-ed30-4e55-8a8b-1704777c7b5f
Runtime:
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 8.6.0.50 (Enterprise Edition)
Hash: 561dfed
Branch: 
Build date: 2015-01-06 17:56:14-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Enterprise Edition)
Android SDK: /Users/apprpject/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.Mac ===

Version: 1.11.3.0 (Enterprise Edition)

=== Build Information ===

Release ID: 507000661
Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78
Build date: 2015-01-05 16:31:31-05
Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7

=== Operating System ===

Mac OS X 10.8.5
Darwin localhost 12.5.0 Darwin Kernel Version 12.5.0
    Sun Sep 29 13:33:47 PDT 2013
    root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
Comment 2 Jason Smith [MSFT] 2015-01-14 15:59:35 UTC
Should be fixed in 1.3.2-pre1
Comment 3 joe 2015-01-21 12:23:56 UTC
This is NOT fixed in forms 1.3.2 pre-1. 

Note: we are using timers for animating controls; For example we use FadeTo to fade controls in and out. These are paused while it is scrolling even in 1.3.2 pre-1
Comment 4 Cody Beyer (MSFT) 2015-01-21 17:00:41 UTC
Per above comment, it does not appear fixed in pre 1. confirmed in test case
Comment 5 Parmendra Kumar 2015-01-30 14:58:37 UTC
I have checked this issue with Xamarin.Forms version 1.3.2.6309-pre2. and observed that its working fine at our end.

Screencast: http://www.screencast.com/t/5d1bOMAByLx
Comment 6 Parmendra Kumar 2015-01-30 14:59:19 UTC
Please reopen this if you getting same issue.
Comment 7 joe 2015-01-30 18:11:18 UTC
Hi this is fixed for Device.StartTimer but not for FadeTo and i'm guessing other animations.

Please apply the fix for all animation timers

I will email an updated example with the problem