196727/jquery-drag-event-doesn-t-seem-to-have-deltax-property
I am trying to create my own slider plugin with jQuery and this library for the drag event. However, on callback for the event, the deltaX-property doesn't seem to occur, which is really weird since it exists in the documentation. I am using version 2.2 of the library. I am using the library like this:
$('#myelement').bind('drag',function(e){ console.log(e); });
Does anyone have any experience with the drag event and can help me? I have also tried using the 'drag' method of the library with the very same result. The deltaX property doesn't exists in the callback.
is "drag" in bind function callback @params
bind(type, callback); callback(event, delta, deltaX, deltaY);
so;
$('#myelement').bind('drag',function(e, delta, deltaX, deltaY){ console.log(e, delta, deltaX, deltaY); });
I'm trying to display a text message ...READ MORE
<!DOCTYPE html><html></html><head><style></style>@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); *{ margin: 0; box-sizing: border-box; padding: 0; } #navbar{ background-color:black; padding: 18px ...READ MORE
Hello @kartik, You don't need to do this ...READ MORE
You were just missing a css class that adjusts ...READ MORE
Yes, we can use jQuery in ReactJs. ...READ MORE
You need to animate the html, body $("#button").click(function() { ...READ MORE
I have a huge jQuery application, and ...READ MORE
The 500 code gets the error and ...READ MORE
Using the mousedown() method: The mousedown() method in ...READ MORE
I don't know if I have forgotten ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.