mirror of
https://github.com/bitwarden/android.git
synced 2024-12-28 20:08:43 +03:00
b8c1107c94
* Fixed long secure notes edition scrolling when focused issue (#1257) * Improved fix long secure notes edition scrolling when focused issue to not use a new editor custom renderer but an effect (#1257) * Fixed long editor, on text and notes on send when scrolling when focused issue (#1257)
25 lines
727 B
C#
25 lines
727 B
C#
using Xamarin.Forms;
|
|
|
|
namespace Bit.App.Effects
|
|
{
|
|
public class ScrollEnabledEffect : RoutingEffect
|
|
{
|
|
public static readonly BindableProperty IsScrollEnabledProperty =
|
|
BindableProperty.CreateAttached("IsScrollEnabled", typeof(bool), typeof(ScrollEnabledEffect), true);
|
|
|
|
public static bool GetIsScrollEnabled(BindableObject view)
|
|
{
|
|
return (bool)view.GetValue(IsScrollEnabledProperty);
|
|
}
|
|
|
|
public static void SetIsScrollEnabled(BindableObject view, bool value)
|
|
{
|
|
view.SetValue(IsScrollEnabledProperty, value);
|
|
}
|
|
|
|
public ScrollEnabledEffect()
|
|
: base("Bitwarden.ScrollEnabledEffect")
|
|
{
|
|
}
|
|
}
|
|
}
|