Maui for android font size change by slider problem

Haviv Elbsz 2,071 Reputation points
2022-12-08T06:31:26.887+00:00

Hi all

I have two scrollable elements an editor and
a label that are scrollable.

and I set a slider values from 12 to 36
and set the font size of these two elements
according to slider values.

sometimes when dragging the slider the
app jumping to the label element..

that is a bad experience for me user

   slider event  
   {  
      editor.fontsize = slider.value;  
      label.fontsize = slider.value;  
   }  

the slider value is casted to integer

how I can fix that.

Thank you very much

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,151 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,560 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.