IR stepper controller - continuous movement

Hello,
I'm learning with arduino - I was able to write a program that controls a stepper motor with a remote control

#include <Stepper.h>
#include <IRremote.h>


#define STEPS  32   // kroki silnika
int  krokow;  // 2048 = 1 obrót
int receiver = 6; // IR Pin 6

// Piny Krokowca
Stepper silnik1(STEPS, 8, 10, 9, 11);
IRrecv irrecv(receiver);    // odbiornik IR
decode_results results;     // dekodowanie

void setup() {
  // predkosc silnika:
  silnik1.setSpeed(600);
  // serial port:
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start IR
}

void loop() {
if (irrecv.decode(&results)) // sygnał IR ?
  {
    switch(results.value)

    {

      case 3730122487: // +
                      silnik1.setSpeed(100); // max predkosc 600
                      krokow  =  1;  // prawo
                      silnik1.step(krokow);
                      Serial.println("prawo");
                      //delay(0); 
                      break;
                                        
      case 2354352215: // -
                      silnik1.setSpeed(100);
                      krokow  =  -10;  // lewo
                      silnik1.step(krokow);
                      Serial.println("lewo");
                      //delay(0); 
                      break;
                      
    }
      irrecv.resume(); // czekaj na następną komende
  }
}

only when I hold the button on the remote control, the motor works pulsationally, that is: 10 steps, pause and again...
I would like the stepper to perform a set of 10 steps after a short press, but as I hold the button on the remote control the motor rotates smoothly until it releases the button

can you explain it to me as for a total freshman?

I would like the stepper to perform a set of 10 steps after a short press, but as I hold the button on the remote control the motor rotates smoothly until it releases the button

How is the stepper going to release the button?

Does your remote send a repeat code, or the pressed key code, over and over when you hold a button down?

32 steps per revolution is very unusual. A link to the stepper, please.

thanks for your reply

i use this one:

is just for learnig at this moment, cause i can drive it with my usb port

it has gearbox so is 2048 steps per revolution.

My remote sent a repeat code

You seem to be telling the motor to move 10 steps using the variable krokow. Maybe you should just get it to move 1 step?

Alternatively, rather than use the IR signal to control the motor directly, use it to set a variable (let's call it motorRun) and then the motor will move

if (motorRun == true) {
   silnik1.step(1);
}

You will need to move in single steps if the program is to respond immediately to the IR signal because the standard Stepper library blocks the Arduino until it completes all the steps. The AccelStepper library can do non-blocking movements.

However neither library is really intended for continuous movement and it may actually be simpler to write your own stepping code. Have a look at the attached links

...R
Stepper Motor Basics
Simple Stepper Code