Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Let CordovaView respect DisallowOverscroll preference
  • Loading branch information
nadyaA committed Sep 29, 2014
1 parent 2e90a47 commit 39d8b43b406fa19718aea6e75233a82e6711041a
Showing 1 changed file with 13 additions and 0 deletions.
@@ -196,6 +196,19 @@ private void ApplyConfigurationPreferences()
Debug.WriteLine("Unable to parse BackgroundColor value '{0}'. Error: {1}", bgColor, ex.Message);
}
}

string disallowOverscroll = configHandler.GetPreference("disallowoverscroll");
if (!String.IsNullOrEmpty(disallowOverscroll))
{
try
{
this.DisableBouncyScrolling = bool.Parse(disallowOverscroll);
}
catch (Exception ex)
{
Debug.WriteLine("Unable to parse DisallowOverscroll value '{0}'. Error: {1}", disallowOverscroll, ex.Message);
}
}
}

/*

0 comments on commit 39d8b43

Please sign in to comment.